aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-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 423e1ba07044..e170030d45da 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -837,7 +837,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
837 if (ra && ra->p_set) 837 if (ra && ra->p_set)
838 file->f_ra = ra->p_ra; 838 file->f_ra = ra->p_ra;
839 839
840 if (file->f_op->sendfile) { 840 if (file->f_op->sendfile && rqstp->rq_sendfile_ok) {
841 svc_pushback_unused_pages(rqstp); 841 svc_pushback_unused_pages(rqstp);
842 err = file->f_op->sendfile(file, &offset, *count, 842 err = file->f_op->sendfile(file, &offset, *count,
843 nfsd_read_actor, rqstp); 843 nfsd_read_actor, rqstp);