summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-28 02:55:51 +0200
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:54 +0100
commit0988fc7bda79feff046056f032fd149ab08e03d1 (patch)
treeb3f293061bba411be73f15983e6ad6c9caf60630 /fs/btrfs/inode.c
parent35da5a7edec32935135737608c9d9da24a419bab (diff)
downloadlinux-0988fc7bda79feff046056f032fd149ab08e03d1.tar.gz
linux-0988fc7bda79feff046056f032fd149ab08e03d1.tar.bz2
linux-0988fc7bda79feff046056f032fd149ab08e03d1.zip
btrfs: switch extent_io_tree::private_data to btrfs_inode and rename
The extent_io_tree::private_data was meant to be a preparatory work for the metadata inode rework but that never materialized. Now it's used only for an inode so it's better to change the appropriate type and rename it. Reviewed-by: Anand Jain <anand.jain@oracle.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 29c6c0ec0016..23ec33ac86e0 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8872,7 +8872,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
inode = &ei->vfs_inode;
extent_map_tree_init(&ei->extent_tree);
extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO);
- ei->io_tree.private_data = inode;
+ ei->io_tree.inode = ei;
extent_io_tree_init(fs_info, &ei->file_extent_tree,
IO_TREE_INODE_FILE_EXTENT);
ei->io_failure_tree = RB_ROOT;