aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/vfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index e3e37f7c8477..49d4b8725ca3 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1891,7 +1891,6 @@ static int nfsd_buffered_readdir(struct file *file, filldir_t func,
1891 if (!size) 1891 if (!size)
1892 break; 1892 break;
1893 1893
1894
1895 de = (struct buffered_dirent *)buf.dirent; 1894 de = (struct buffered_dirent *)buf.dirent;
1896 while (size > 0) { 1895 while (size > 0) {
1897 offset = de->offset; 1896 offset = de->offset;
@@ -1908,7 +1907,9 @@ static int nfsd_buffered_readdir(struct file *file, filldir_t func,
1908 size -= reclen; 1907 size -= reclen;
1909 de = (struct buffered_dirent *)((char *)de + reclen); 1908 de = (struct buffered_dirent *)((char *)de + reclen);
1910 } 1909 }
1911 offset = vfs_llseek(file, 0, 1); 1910 offset = vfs_llseek(file, 0, SEEK_CUR);
1911 if (!buf.full)
1912 break;
1912 } 1913 }
1913 1914
1914 done: 1915 done: