projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2952a
)
nfsd: trivial: use SEEK_SET instead of 0 in vfs_llseek
author
Jeff Layton
<jlayton@redhat.com>
Wed, 25 Apr 2012 19:30:00 +0000
(15:30 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Wed, 25 Apr 2012 19:38:23 +0000
(15:38 -0400)
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>
fs/nfsd/vfs.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/vfs.c
b/fs/nfsd/vfs.c
index 568666156ea4f59525d67207551ee8c45a3b730e..c8bd9c3be7f747410622fd1172b2c7243886f838 100644
(file)
--- 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;