netfs: Replace PG_fscache by setting folio->private and marking dirty
[linux-2.6-block.git] / fs / ceph / inode.c
index 7b2e77517f235ecd47264061c04bae2e6d0b7c83..99561fddcb388b8f1743e7323085ec7dcd26f727 100644 (file)
@@ -577,6 +577,8 @@ struct inode *ceph_alloc_inode(struct super_block *sb)
 
        /* Set parameters for the netfs library */
        netfs_inode_init(&ci->netfs, &ceph_netfs_ops, false);
+       /* [DEPRECATED] Use PG_private_2 to mark folio being written to the cache. */
+       __set_bit(NETFS_ICTX_USE_PGPRIV2, &ci->netfs.flags);
 
        spin_lock_init(&ci->i_ceph_lock);