diff options
author | NeilBrown <neilb@suse.com> | 2019-03-06 17:49:46 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-03-08 14:30:31 -0500 |
commit | f875a792abe933d0b4553ab6e29c624b58932e41 (patch) | |
tree | b866463dc65f11f6a3ec930aae575425c054f94f /fs/nfsd/nfs3proc.c | |
parent | dd838821f0a29781b185cd8fb8e48d5c177bd838 (diff) |
nfsd: allow nfsv3 readdir request to be larger.
nfsd currently reports the NFSv3 dtpref FSINFO parameter
to be PAGE_SIZE, so NFS clients will typically ask for one
page of directory entries at a time. This is needlessly restrictive
as nfsd can handle larger replies easily.
Also, a READDIR request (but not a READDIRPLUS request) has the count
size clipped to PAGE_SIE, again unnecessary.
This patch lifts these limits so that larger readdir requests can be
used.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs3proc.c')
-rw-r--r-- | fs/nfsd/nfs3proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c index c9cf46e0c040..8f933e84cec1 100644 --- a/fs/nfsd/nfs3proc.c +++ b/fs/nfsd/nfs3proc.c | |||
@@ -588,7 +588,7 @@ nfsd3_proc_fsinfo(struct svc_rqst *rqstp) | |||
588 | resp->f_wtmax = max_blocksize; | 588 | resp->f_wtmax = max_blocksize; |
589 | resp->f_wtpref = max_blocksize; | 589 | resp->f_wtpref = max_blocksize; |
590 | resp->f_wtmult = PAGE_SIZE; | 590 | resp->f_wtmult = PAGE_SIZE; |
591 | resp->f_dtpref = PAGE_SIZE; | 591 | resp->f_dtpref = max_blocksize; |
592 | resp->f_maxfilesize = ~(u32) 0; | 592 | resp->f_maxfilesize = ~(u32) 0; |
593 | resp->f_properties = NFS3_FSF_DEFAULT; | 593 | resp->f_properties = NFS3_FSF_DEFAULT; |
594 | 594 | ||