mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
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>
This commit is contained in:
parent
fc2952a2a9
commit
b108fe6b08
@ -2039,7 +2039,7 @@ nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp,
|
|||||||
if (err)
|
if (err)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
offset = vfs_llseek(file, offset, 0);
|
offset = vfs_llseek(file, offset, SEEK_SET);
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
err = nfserrno((int)offset);
|
err = nfserrno((int)offset);
|
||||||
goto out_close;
|
goto out_close;
|
||||||
|
Loading…
Reference in New Issue
Block a user