summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-04-25 19:30:00 (GMT)
committerJ. Bruce Fields <bfields@redhat.com>2012-04-25 19:38:23 (GMT)
commitb108fe6b08f3f61c2c465649b20b7d4b4c185728 (patch)
tree9a6ec64da43419e90439a7716bdae35e9b27a48d
parentfc2952a2a9f724f7d200c69a2b059ec331a80363 (diff)
downloadlinux-fsl-qoriq-b108fe6b08f3f61c2c465649b20b7d4b4c185728.tar.xz
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>
-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 5686661..c8bd9c3 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;