btrfs: initial fsverity support
[linux-block.git] / fs / btrfs / super.c
index 0d2e3ab2fc3144e037c025cd11e812255bd3b04f..2bdc544b4c951df36ce438f48e02de1cdefff042 100644 (file)
@@ -1353,6 +1353,9 @@ static int btrfs_fill_super(struct super_block *sb,
        sb->s_op = &btrfs_super_ops;
        sb->s_d_op = &btrfs_dentry_operations;
        sb->s_export_op = &btrfs_export_ops;
+#ifdef CONFIG_FS_VERITY
+       sb->s_vop = &btrfs_verityops;
+#endif
        sb->s_xattr = btrfs_xattr_handlers;
        sb->s_time_gran = 1;
 #ifdef CONFIG_BTRFS_FS_POSIX_ACL