summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-09-09 17:53:48 -0400
committerDavid Sterba <dsterba@suse.com>2022-09-26 12:28:05 +0200
commitefb0645bd9dfd1cbfaab766444de4748556dc103 (patch)
tree0996571b53d04e73c4ff79b58bca63dd36b3a11c /fs/btrfs/inode.c
parentbd015294af4d919f94ede252e035f3c11638ea1f (diff)
downloadlwn-efb0645bd9dfd1cbfaab766444de4748556dc103.tar.gz
lwn-efb0645bd9dfd1cbfaab766444de4748556dc103.zip
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 39f00b68b3a8..6fde13f62c1d 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8800,7 +8800,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
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->file_extent_tree,
- IO_TREE_INODE_FILE_EXTENT, inode);
+ IO_TREE_INODE_FILE_EXTENT, NULL);
ei->io_failure_tree = RB_ROOT;
atomic_set(&ei->sync_writers, 0);
mutex_init(&ei->log_mutex);