]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/btrfs/extent-io-tree.c
btrfs: allocate btrfs_inode::file_extent_tree only without NO_HOLES
[thirdparty/linux.git] / fs / btrfs / extent-io-tree.c
index dbd201a9969377205a8ddc5390b2eabfbc4fb871..e3ee5449cc4af7b44385805d57baeb5d6998a483 100644 (file)
@@ -962,6 +962,8 @@ int find_contiguous_extent_bit(struct extent_io_tree *tree, u64 start,
        struct extent_state *state;
        int ret = 1;
 
+       ASSERT(!btrfs_fs_incompat(extent_io_tree_to_fs_info(tree), NO_HOLES));
+
        spin_lock(&tree->lock);
        state = find_first_extent_bit_state(tree, start, bits);
        if (state) {