[RFC PATCH 0/2] nfsd sync export_op (was 'wsync export option')

Ben Myers
2010-02-10T00:33:28Z

This is another try based upon Christoph and Trond's suggestions in the 'wsync
export option' thread. I've added the export operation and combined
nfsd_sync_dir and write_inode_now usage into nfsd_sync2 which passes the buck
onto XFS. It's been very lightly tested. It's just a little bit faster than
the previous try:

# time tar -xvf /mnt2/quilt-0.47.tar > /dev/null

plain jane:
0m13.177s 0m13.301s 0m13.528s

previous try:
0m8.361s 0m8.400s 0m8.301s

w/ xfs commit_metadata op:
0m7.426s 0m7.340s 0m7.198s

Thanks!
-Ben

---

Ben Myers (2):
commit_metadata export operation and nfsd_sync2
xfs_export_operations.commit_metadata

fs/nfsd/nfs3proc.c | 2 -
fs/nfsd/nfs4proc.c | 2 -
fs/nfsd/nfs4recover.c | 2 -
fs/nfsd/nfs4state.c | 2 -
fs/nfsd/nfsproc.c | 4 +
fs/nfsd/vfs.c | 113 ++++++++++++++++++++++++++---------------
fs/nfsd/vfs.h | 4 +
fs/xfs/linux-2.6/xfs_export.c | 64 +++++++++++++++++++++++
include/linux/exportfs.h | 6 ++
9 files changed, 151 insertions(+), 48 deletions(-)

--