diff options
author | James Morris <jmorris@namei.org> | 2008-11-13 19:29:12 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-11-13 19:29:12 -0500 |
commit | 2b828925652340277a889cbc11b2d0637f7cdaf7 (patch) | |
tree | 32fcb3d3e466fc419fad2d3717956a5b5ad3d35a /fs/nfsd | |
parent | 3a3b7ce9336952ea7b9564d976d068a238976c9d (diff) | |
parent | 58e20d8d344b0ee083febb18c2b021d2427e56ca (diff) |
Merge branch 'master' into next
Conflicts:
security/keys/internal.h
security/keys/process_keys.c
security/keys/request_key.c
Fixed conflicts above by using the non 'tsk' versions.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/vfs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index b59ec5a6ed24..d1c5f787b365 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -1876,11 +1876,11 @@ static int nfsd_buffered_readdir(struct file *file, filldir_t func, | |||
1876 | return -ENOMEM; | 1876 | return -ENOMEM; |
1877 | 1877 | ||
1878 | offset = *offsetp; | 1878 | offset = *offsetp; |
1879 | cdp->err = nfserr_eof; /* will be cleared on successful read */ | ||
1880 | 1879 | ||
1881 | while (1) { | 1880 | while (1) { |
1882 | unsigned int reclen; | 1881 | unsigned int reclen; |
1883 | 1882 | ||
1883 | cdp->err = nfserr_eof; /* will be cleared on successful read */ | ||
1884 | buf.used = 0; | 1884 | buf.used = 0; |
1885 | buf.full = 0; | 1885 | buf.full = 0; |
1886 | 1886 | ||
@@ -1913,9 +1913,6 @@ static int nfsd_buffered_readdir(struct file *file, filldir_t func, | |||
1913 | de = (struct buffered_dirent *)((char *)de + reclen); | 1913 | de = (struct buffered_dirent *)((char *)de + reclen); |
1914 | } | 1914 | } |
1915 | offset = vfs_llseek(file, 0, SEEK_CUR); | 1915 | offset = vfs_llseek(file, 0, SEEK_CUR); |
1916 | cdp->err = nfserr_eof; | ||
1917 | if (!buf.full) | ||
1918 | break; | ||
1919 | } | 1916 | } |
1920 | 1917 | ||
1921 | done: | 1918 | done: |