[PATCH] Optimise NFS readdir hack slightly.
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 17 Aug 2008 16:21:18 +0000 (17:21 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Oct 2008 09:13:11 +0000 (05:13 -0400)
Avoid calling the underlying ->readdir() again when we reached the end
already; keep going round the loop only if we stopped due to our own
buffer being full.

[AV: tidy the things up a bit, while we are there]

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

No differences found