diff options
| author | Naohiro Aota <[email protected]> | 2025-04-23 02:43:42 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:52 +0000 |
| commit | 1c34e71966fa03df1581ff44ddc6dbb64cc4c440 (patch) | |
| tree | 3bb77bdd5428772744626949fc3b18d01261f011 /fs/btrfs/inode.c | |
| parent | btrfs: pass btrfs_space_info to btrfs_reserve_data_bytes() (diff) | |
| download | kernel-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/inode.c')
| -rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index e7ddf51e0bc7..3a1e5926fee9 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2596,7 +2596,7 @@ void btrfs_clear_delalloc_extent(struct btrfs_inode *inode, !btrfs_is_free_space_inode(inode) && !(state->state & EXTENT_NORESERVE) && (bits & EXTENT_CLEAR_DATA_RESV)) - btrfs_free_reserved_data_space_noquota(fs_info, len); + btrfs_free_reserved_data_space_noquota(inode, len); percpu_counter_add_batch(&fs_info->delalloc_bytes, -len, fs_info->delalloc_batch); @@ -9734,7 +9734,7 @@ out_free_data_space: * bytes_may_use. */ if (!extent_reserved) - btrfs_free_reserved_data_space_noquota(fs_info, disk_num_bytes); + btrfs_free_reserved_data_space_noquota(inode, disk_num_bytes); out_unlock: btrfs_unlock_extent(io_tree, start, end, &cached_state); out_folios: |
