mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
btrfs: don't init io tree with private data for non-inodes
We only use this for normal inodes, so don't set it if we're not a normal inode. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
bd015294af
commit
efb0645bd9
3 changed files with 3 additions and 3 deletions
|
@ -2231,7 +2231,7 @@ static void btrfs_init_btree_inode(struct btrfs_fs_info *fs_info)
|
||||||
|
|
||||||
RB_CLEAR_NODE(&BTRFS_I(inode)->rb_node);
|
RB_CLEAR_NODE(&BTRFS_I(inode)->rb_node);
|
||||||
extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree,
|
extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree,
|
||||||
IO_TREE_BTREE_INODE_IO, inode);
|
IO_TREE_BTREE_INODE_IO, NULL);
|
||||||
extent_map_tree_init(&BTRFS_I(inode)->extent_tree);
|
extent_map_tree_init(&BTRFS_I(inode)->extent_tree);
|
||||||
|
|
||||||
BTRFS_I(inode)->root = btrfs_grab_root(fs_info->tree_root);
|
BTRFS_I(inode)->root = btrfs_grab_root(fs_info->tree_root);
|
||||||
|
|
|
@ -8800,7 +8800,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
|
||||||
extent_map_tree_init(&ei->extent_tree);
|
extent_map_tree_init(&ei->extent_tree);
|
||||||
extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode);
|
extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode);
|
||||||
extent_io_tree_init(fs_info, &ei->file_extent_tree,
|
extent_io_tree_init(fs_info, &ei->file_extent_tree,
|
||||||
IO_TREE_INODE_FILE_EXTENT, inode);
|
IO_TREE_INODE_FILE_EXTENT, NULL);
|
||||||
ei->io_failure_tree = RB_ROOT;
|
ei->io_failure_tree = RB_ROOT;
|
||||||
atomic_set(&ei->sync_writers, 0);
|
atomic_set(&ei->sync_writers, 0);
|
||||||
mutex_init(&ei->log_mutex);
|
mutex_init(&ei->log_mutex);
|
||||||
|
|
|
@ -365,7 +365,7 @@ static noinline int join_transaction(struct btrfs_fs_info *fs_info,
|
||||||
spin_lock_init(&cur_trans->releasing_ebs_lock);
|
spin_lock_init(&cur_trans->releasing_ebs_lock);
|
||||||
list_add_tail(&cur_trans->list, &fs_info->trans_list);
|
list_add_tail(&cur_trans->list, &fs_info->trans_list);
|
||||||
extent_io_tree_init(fs_info, &cur_trans->dirty_pages,
|
extent_io_tree_init(fs_info, &cur_trans->dirty_pages,
|
||||||
IO_TREE_TRANS_DIRTY_PAGES, fs_info->btree_inode);
|
IO_TREE_TRANS_DIRTY_PAGES, NULL);
|
||||||
extent_io_tree_init(fs_info, &cur_trans->pinned_extents,
|
extent_io_tree_init(fs_info, &cur_trans->pinned_extents,
|
||||||
IO_TREE_FS_PINNED_EXTENTS, NULL);
|
IO_TREE_FS_PINNED_EXTENTS, NULL);
|
||||||
fs_info->generation++;
|
fs_info->generation++;
|
||||||
|
|
Loading…
Reference in a new issue