Merge tag 'netfs-prep-20220318' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / fs / ceph / inode.c
index d80911dc91c2010ddd7da20467ffc1490132957f..63113e2a4890763e255048c31a0b228cdba13a22 100644 (file)
@@ -459,6 +459,9 @@ struct inode *ceph_alloc_inode(struct super_block *sb)
 
        dout("alloc_inode %p\n", &ci->vfs_inode);
 
+       /* Set parameters for the netfs library */
+       netfs_i_context_init(&ci->vfs_inode, &ceph_netfs_ops);
+
        spin_lock_init(&ci->i_ceph_lock);
 
        ci->i_version = 0;
@@ -544,9 +547,6 @@ struct inode *ceph_alloc_inode(struct super_block *sb)
        INIT_WORK(&ci->i_work, ceph_inode_work);
        ci->i_work_mask = 0;
        memset(&ci->i_btime, '\0', sizeof(ci->i_btime));
-
-       ceph_fscache_inode_init(ci);
-
        return &ci->vfs_inode;
 }