[PATCH] Fix bugs introduced by recent improvements to readdir_plus
commita9b095e467baabb40d31fbae7a85e48c1b55add1
authorNeil Brown <neilb@cse.unsw.edu.au>
Sun, 28 Mar 2004 10:33:50 +0000 (28 02:33 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 28 Mar 2004 10:33:50 +0000 (28 02:33 -0800)
tree8e6a83e1e0b181b3cfb2b7ef570d6ae48d1b40f7
parent9cfd4af751b504a2080dfb85f5544bbc4a724b24
[PATCH] Fix bugs introduced by recent improvements to readdir_plus

 - make sure cd->buffer is always inside a page - previously if an
   entry fit perfectly in the remainder of a page, cd->buffer would
   end up pointing past the end of that page.

 - make sure num_entry_words is always correct, even on the error
   path.
fs/nfsd/nfs3xdr.c