]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel-commit-metadata.m4
Implement .commit_metadata hook for NFS export
authorCyril Plisko <cyril.plisko@mountall.com>
Sun, 16 Sep 2012 06:03:04 +0000 (09:03 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Oct 2012 17:49:45 +0000 (10:49 -0700)
commit393b44c7112854fc11dc97885a87f666780cc9fe
tree1348aeb3607c55d66660c8424d5e5498bd328180
parent23a61ccc1b89fa5b89b5d8383d57cf5152406cfc
Implement .commit_metadata hook for NFS export

In order to implement synchronous NFS metadata semantics ZFS
needs to provide the .commit_metadata hook.  All it takes there
is to make sure changes are committed to ZIL.  Fortunately
zfs_fsync() does just that, so simply calling it from
zpl_commit_metadata() does the trick.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #969
config/kernel-commit-metadata.m4 [new file with mode: 0644]
config/kernel.m4
module/zfs/zpl_export.c