aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.com> 2022-10-27 02:41:32 +0200
committerGravatar David Sterba <dsterba@suse.com> 2022-12-05 18:00:53 +0100
commite5d4d75bd3241d0a5990060ef9601bf17adf9bb5 (patch)
treedadf394f31ea50b3711901cdc107f8ee63b00eb3 /fs/btrfs/relocation.c
parentbtrfs: pass btrfs_inode to btrfs_inode_lock (diff)
downloadlinux-e5d4d75bd3241d0a5990060ef9601bf17adf9bb5.tar.gz
linux-e5d4d75bd3241d0a5990060ef9601bf17adf9bb5.tar.bz2
linux-e5d4d75bd3241d0a5990060ef9601bf17adf9bb5.zip
btrfs: pass btrfs_inode to btrfs_inode_unlock
The function is for internal interfaces so we should use the btrfs_inode. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r--fs/btrfs/relocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index f34cb92f3151..d75b18e84285 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -2894,7 +2894,7 @@ static noinline_for_stack int prealloc_file_extent_cluster(
if (ret)
break;
}
- btrfs_inode_unlock(&inode->vfs_inode, 0);
+ btrfs_inode_unlock(inode, 0);
if (cur_offset < prealloc_end)
btrfs_free_reserved_data_space_noquota(inode->root->fs_info,