]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfsd/vfs.c
nfsd: fix failure to set eof in readdir in some situations
[linux-2.6-omap-h63xx.git] / fs / nfsd / vfs.c
index 0bc56f6d9276b96878edd55837354d6c5ea87d02..848a03e83a425270050f474d6031e0df9f4da933 100644 (file)
@@ -1912,6 +1912,7 @@ static int nfsd_buffered_readdir(struct file *file, filldir_t func,
                        de = (struct buffered_dirent *)((char *)de + reclen);
                }
                offset = vfs_llseek(file, 0, SEEK_CUR);
+               cdp->err = nfserr_eof;
                if (!buf.full)
                        break;
        }