bcachefs: Enable large folios
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 19 Mar 2023 20:47:30 +0000 (16:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:59 +0000 (17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c

index 58a89c36cf0ecb9b55af6fdf8cda061bab61b242..99082820e30b2e78bf816bde557f72c3bb0ac7c1 100644 (file)
@@ -1369,6 +1369,8 @@ static void bch2_vfs_inode_init(struct btree_trans *trans, subvol_inum inum,
                inode->v.i_op   = &bch_special_inode_operations;
                break;
        }
+
+       mapping_set_large_folios(inode->v.i_mapping);
 }
 
 static struct inode *bch2_alloc_inode(struct super_block *sb)