aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2025-04-23 02:43:42 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:52 +0000
commit1c34e71966fa03df1581ff44ddc6dbb64cc4c440 (patch)
tree3bb77bdd5428772744626949fc3b18d01261f011 /fs/btrfs/relocation.c
parentbtrfs: pass btrfs_space_info to btrfs_reserve_data_bytes() (diff)
downloadkernel-1c34e71966fa03df1581ff44ddc6dbb64cc4c440.tar.gz
kernel-1c34e71966fa03df1581ff44ddc6dbb64cc4c440.zip
btrfs: pass struct btrfs_inode to btrfs_free_reserved_data_space_noquota()
As well as the last patch, pass struct btrfs_inode to the function and let it distinguish which data space it is working on in a later patch. There is no functional change with this commit. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Naohiro Aota <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r--fs/btrfs/relocation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 0a6325ebf266..02086191630d 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -2748,8 +2748,8 @@ static noinline_for_stack int prealloc_file_extent_cluster(struct reloc_control
btrfs_inode_unlock(inode, 0);
if (cur_offset < prealloc_end)
- btrfs_free_reserved_data_space_noquota(inode->root->fs_info,
- prealloc_end + 1 - cur_offset);
+ btrfs_free_reserved_data_space_noquota(inode,
+ prealloc_end + 1 - cur_offset);
return ret;
}