diff options
-rw-r--r-- | fs/btrfs/disk-io.c | 3 | ||||
-rw-r--r-- | fs/btrfs/extent_map.c | 3 | ||||
-rw-r--r-- | fs/btrfs/extent_map.h | 2 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 2 | ||||
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
5 files changed, 5 insertions, 7 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 3ce80f71e98a..f2ee584b8efd 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1713,8 +1713,7 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
1713 | RB_CLEAR_NODE(&BTRFS_I(fs_info->btree_inode)->rb_node); | 1713 | RB_CLEAR_NODE(&BTRFS_I(fs_info->btree_inode)->rb_node); |
1714 | extent_io_tree_init(&BTRFS_I(fs_info->btree_inode)->io_tree, | 1714 | extent_io_tree_init(&BTRFS_I(fs_info->btree_inode)->io_tree, |
1715 | fs_info->btree_inode->i_mapping); | 1715 | fs_info->btree_inode->i_mapping); |
1716 | extent_map_tree_init(&BTRFS_I(fs_info->btree_inode)->extent_tree, | 1716 | extent_map_tree_init(&BTRFS_I(fs_info->btree_inode)->extent_tree); |
1717 | GFP_NOFS); | ||
1718 | 1717 | ||
1719 | BTRFS_I(fs_info->btree_inode)->io_tree.ops = &btree_extent_io_ops; | 1718 | BTRFS_I(fs_info->btree_inode)->io_tree.ops = &btree_extent_io_ops; |
1720 | 1719 | ||
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index a24a3f2fa13e..3c8f374a8e2d 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -28,12 +28,11 @@ void extent_map_exit(void) | |||
28 | /** | 28 | /** |
29 | * extent_map_tree_init - initialize extent map tree | 29 | * extent_map_tree_init - initialize extent map tree |
30 | * @tree: tree to initialize | 30 | * @tree: tree to initialize |
31 | * @mask: flags for memory allocations during tree operations | ||
32 | * | 31 | * |
33 | * Initialize the extent tree @tree. Should be called for each new inode | 32 | * Initialize the extent tree @tree. Should be called for each new inode |
34 | * or other user of the extent_map interface. | 33 | * or other user of the extent_map interface. |
35 | */ | 34 | */ |
36 | void extent_map_tree_init(struct extent_map_tree *tree, gfp_t mask) | 35 | void extent_map_tree_init(struct extent_map_tree *tree) |
37 | { | 36 | { |
38 | tree->map = RB_ROOT; | 37 | tree->map = RB_ROOT; |
39 | rwlock_init(&tree->lock); | 38 | rwlock_init(&tree->lock); |
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 28b44dbd1e35..255813c51b9d 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h | |||
@@ -49,7 +49,7 @@ static inline u64 extent_map_block_end(struct extent_map *em) | |||
49 | return em->block_start + em->block_len; | 49 | return em->block_start + em->block_len; |
50 | } | 50 | } |
51 | 51 | ||
52 | void extent_map_tree_init(struct extent_map_tree *tree, gfp_t mask); | 52 | void extent_map_tree_init(struct extent_map_tree *tree); |
53 | struct extent_map *lookup_extent_mapping(struct extent_map_tree *tree, | 53 | struct extent_map *lookup_extent_mapping(struct extent_map_tree *tree, |
54 | u64 start, u64 len); | 54 | u64 start, u64 len); |
55 | int add_extent_mapping(struct extent_map_tree *tree, | 55 | int add_extent_mapping(struct extent_map_tree *tree, |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 3c98164f8b24..f54c015cc294 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -6785,7 +6785,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb) | |||
6785 | ei->force_compress = BTRFS_COMPRESS_NONE; | 6785 | ei->force_compress = BTRFS_COMPRESS_NONE; |
6786 | 6786 | ||
6787 | inode = &ei->vfs_inode; | 6787 | inode = &ei->vfs_inode; |
6788 | extent_map_tree_init(&ei->extent_tree, GFP_NOFS); | 6788 | extent_map_tree_init(&ei->extent_tree); |
6789 | extent_io_tree_init(&ei->io_tree, &inode->i_data); | 6789 | extent_io_tree_init(&ei->io_tree, &inode->i_data); |
6790 | extent_io_tree_init(&ei->io_failure_tree, &inode->i_data); | 6790 | extent_io_tree_init(&ei->io_failure_tree, &inode->i_data); |
6791 | mutex_init(&ei->log_mutex); | 6791 | mutex_init(&ei->log_mutex); |
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c7367ae5a3e6..15d7dc943c9b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -2849,7 +2849,7 @@ int btrfs_chunk_readonly(struct btrfs_root *root, u64 chunk_offset) | |||
2849 | 2849 | ||
2850 | void btrfs_mapping_init(struct btrfs_mapping_tree *tree) | 2850 | void btrfs_mapping_init(struct btrfs_mapping_tree *tree) |
2851 | { | 2851 | { |
2852 | extent_map_tree_init(&tree->map_tree, GFP_NOFS); | 2852 | extent_map_tree_init(&tree->map_tree); |
2853 | } | 2853 | } |
2854 | 2854 | ||
2855 | void btrfs_mapping_tree_free(struct btrfs_mapping_tree *tree) | 2855 | void btrfs_mapping_tree_free(struct btrfs_mapping_tree *tree) |