Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> --- fs/ceph/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 1dad69a0ab70..8ea1b53b6ce9 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -450,6 +450,7 @@ static int ceph_fill_fragtree(struct inode *inode, */ struct inode *ceph_alloc_inode(struct super_block *sb) { + struct ceph_mount_options *fsopt = ceph_sb_to_client(sb)->mount_options; struct ceph_inode_info *ci; struct netfs_i_context *ctx; int i; @@ -463,7 +464,7 @@ struct inode *ceph_alloc_inode(struct super_block *sb) /* Set parameters for the netfs library */ ctx = netfs_i_context(&ci->vfs_inode); netfs_i_context_init(&ci->vfs_inode, &ceph_netfs_ops); - ctx->rsize = 1024 * 1024; + ctx->rsize = fsopt->rsize; spin_lock_init(&ci->i_ceph_lock); -- 2.35.1