Skip to content

Commit

Permalink
feat(nfs3/readdir): expand readdir size to 265KB
Browse files Browse the repository at this point in the history
Reduce the number of rpc calls.

Signed-off-by: Guoliang Jiang <[email protected]>
  • Loading branch information
wf-caravaggio committed Jan 23, 2025
1 parent f2754bc commit 443003c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Protocols/NFS/nfs3_fsinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ int nfs3_fsinfo(nfs_arg_t *arg, struct svc_req *req, nfs_res_t *res)
/* This field is generally unused, it will be removed in V4 */
FSINFO_FIELD->wtmult = DEV_BSIZE;

FSINFO_FIELD->dtpref =
atomic_fetch_uint64_t(&op_ctx->ctx_export->PrefReaddir);
FSINFO_FIELD->dtpref = 262144;
FSINFO_FIELD->maxfilesize =
op_ctx->fsal_export->exp_ops.fs_maxfilesize(op_ctx->fsal_export);
FSINFO_FIELD->time_delta.tv_sec = dynamicinfo.time_delta.tv_sec;
Expand Down

0 comments on commit 443003c

Please sign in to comment.