diff options
author | David Sterba <dsterba@suse.com> | 2022-01-31 18:57:43 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:28 +0200 |
commit | a1f4e3d7bd3bfa01d8b4be9b55c2af180f733ff1 (patch) | |
tree | 1409ab83ff70d7c0437a9f39557a03f1e5a38007 /fs/btrfs/relocation.c | |
parent | btrfs: switch btrfs_pending_snapshot::dir to btrfs_inode (diff) | |
download | linux-a1f4e3d7bd3bfa01d8b4be9b55c2af180f733ff1.tar.xz linux-a1f4e3d7bd3bfa01d8b4be9b55c2af180f733ff1.zip |
btrfs: switch btrfs_ordered_extent::inode to struct btrfs_inode
The structure is internal so we should use struct btrfs_inode for that,
allowing to remove some use of BTRFS_I.
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 6ea407255a30..1a28ec054991 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -4388,7 +4388,7 @@ out: */ int btrfs_reloc_clone_csums(struct btrfs_ordered_extent *ordered) { - struct btrfs_inode *inode = BTRFS_I(ordered->inode); + struct btrfs_inode *inode = ordered->inode; struct btrfs_fs_info *fs_info = inode->root->fs_info; u64 disk_bytenr = ordered->file_offset + inode->reloc_block_group_start; struct btrfs_root *csum_root = btrfs_csum_root(fs_info, disk_bytenr); |