[PATCH] give NFS client a "set_page_dirty" address space op.

From: Chuck Lever (cel@citi.umich.edu)
Date: Wed Dec 18 2002 - 18:20:37 EST


Description:
  The default set_page_dirty address space op is too heavyweight for NFS,
  which doesn't use buffers.

Apply against:
  2.5.52

diff -Naurp 01-kmap_atomic/fs/nfs/file.c 02-set_page_dirty/fs/nfs/file.c
--- 01-kmap_atomic/fs/nfs/file.c Sun Dec 15 21:08:12 2002
+++ 02-set_page_dirty/fs/nfs/file.c Wed Dec 18 17:37:07 2002
@@ -168,6 +168,7 @@ static int nfs_commit_write(struct file
 struct address_space_operations nfs_file_aops = {
         .readpage = nfs_readpage,
         .readpages = nfs_readpages,
+ .set_page_dirty = __set_page_dirty_nobuffers,
         .writepage = nfs_writepage,
         .writepages = nfs_writepages,
         .prepare_write = nfs_prepare_write,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:21 EST