[pnfs] CVS: nfsv4

Dean Hildebrand dhildebz at citi.umich.edu
Thu Aug 17 12:03:26 EDT 2006


CVSROOT:	/cvs
Module name:	nfsv4
Changes by:	dhildebz at citi.	2006/08/17 12:03:26

Modified files:
	cvs/pnfs/fs/nfs: write.c 

Log message:
Only issue a layoutcommit when the file is to be flushed and placed o
stable storage.  Patch below.

diff -puN fs/nfs/write.c~lcfix fs/nfs/write.c
--- pnfs-2.6.17/fs/nfs/write.c~lcfix    2006-08-16 13:43:10.088058000 -0400
+++ pnfs-2.6.17-dhildebz/fs/nfs/write.c 2006-08-16 14:54:11.386171000 -0400
@@ -1771,7 +1771,9 @@ int nfs_sync_inode_wait(struct inode *in
} while (ret >= 0);
spin_unlock(&nfsi->req_lock);
#if defined(CONFIG_NFS_V4)
-       if ((ret == 0) && NFS_I(inode)->layoutcommit_ctx) {
+       if ((how == 0) &&
+           (ret == 0) &&
+           NFS_I(inode)->layoutcommit_ctx) {
ret = pnfs_layoutcommit_inode(inode, 1);
}
#endif



More information about the pNFS mailing list