summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-04-25 21:30:00 +0200
committerJ. Bruce Fields <bfields@redhat.com>2012-04-25 21:38:23 +0200
commitb108fe6b08f3f61c2c465649b20b7d4b4c185728 (patch)
tree9a6ec64da43419e90439a7716bdae35e9b27a48d /fs/nfsd/vfs.c
parentSUNRPC: split upcall function to extract reusable parts (diff)
downloadlinux-b108fe6b08f3f61c2c465649b20b7d4b4c185728.tar.xz
linux-b108fe6b08f3f61c2c465649b20b7d4b4c185728.zip
nfsd: trivial: use SEEK_SET instead of 0 in vfs_llseek
They're equivalent, but SEEK_SET is more informative... Cc: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 568666156ea4..c8bd9c3be7f7 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -2039,7 +2039,7 @@ nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp,
if (err)
goto out;
- offset = vfs_llseek(file, offset, 0);
+ offset = vfs_llseek(file, offset, SEEK_SET);
if (offset < 0) {
err = nfserrno((int)offset);
goto out_close;