@@ -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);
Signed-off-by: Jeff Layton <jlayton@kernel.org> --- fs/ceph/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)