Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b108fe6b authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields
Browse files

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: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent fc2952a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;