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

From: Chuck Lever (cel@citi.umich.edu)
Date: Tue Nov 26 2002 - 14:36:36 EST


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

Apply against:
  2.5.49

Test status:
  Passes Connectathon '02, fsx, and other stress tests on a UP HIGHMEM
  system.

diff -Naur 01-kmap-atomic/fs/nfs/file.c 02-set_page_dirty/fs/nfs/file.c
--- 01-kmap-atomic/fs/nfs/file.c Fri Nov 22 16:40:51 2002
+++ 02-set_page_dirty/fs/nfs/file.c Mon Nov 25 13:19:44 2002
@@ -168,6 +168,7 @@
 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 : Sat Nov 30 2002 - 22:00:14 EST