[Linux-cachefs] [RFC PATCH 2/5] ceph: set rsize in netfs_i_context from mount options
Jeff Layton
jlayton at kernel.org
Thu Apr 7 12:02:21 UTC 2022
Signed-off-by: Jeff Layton <jlayton at kernel.org>
---
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
More information about the Linux-cachefs
mailing list