]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] nfsd: Don't try to cache reply to nfsv2 readdir.
authorNeil Brown <neilb@cse.unsw.edu.au>
Mon, 7 Feb 2005 23:48:07 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 7 Feb 2005 23:48:07 +0000 (15:48 -0800)
As readdir returns the reply in a separate page, the cache code cannot find
the reply (and it would probably be too big anyway) so flag readdir for NOCACHE

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfsproc.c

index 70b32eac873cd1581d3a63112fad0807ea605060..f3bf5368551c8c156eb0e7d42cdd9948668269d4 100644 (file)
@@ -540,7 +540,7 @@ static struct svc_procedure         nfsd_procedures2[18] = {
   PROC(symlink,         symlinkargs,   void,           none,           RC_REPLSTAT, ST),
   PROC(mkdir,   createargs,    diropres,       fhandle,        RC_REPLBUFF, ST+FH+AT),
   PROC(rmdir,   diropargs,     void,           none,           RC_REPLSTAT, ST),
-  PROC(readdir,         readdirargs,   readdirres,     none,           RC_REPLBUFF, 0),
+  PROC(readdir,         readdirargs,   readdirres,     none,           RC_NOCACHE, 0),
   PROC(statfs,  fhandle,       statfsres,      none,           RC_NOCACHE, ST+5),
 };