]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/vfs.c
xfs: Fix overallocation in xfs_buf_allocate_memory()
[karo-tx-linux.git] / fs / nfsd / vfs.c
index 568666156ea4f59525d67207551ee8c45a3b730e..c8bd9c3be7f747410622fd1172b2c7243886f838 100644 (file)
@@ -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;