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
commit29b6352b1494bd7ec6a14bda087f8eb858d2fc1f (patch)
treef7fd753391a9ce067a9780b9baa1e80e07cc8f19 /fs/btrfs/relocation.c
parentbtrfs: pass btrfs_inode to btrfs_truncate (diff)
downloadlinux-29b6352b1494bd7ec6a14bda087f8eb858d2fc1f.tar.gz
linux-29b6352b1494bd7ec6a14bda087f8eb858d2fc1f.tar.bz2
linux-29b6352b1494bd7ec6a14bda087f8eb858d2fc1f.zip
btrfs: pass btrfs_inode to btrfs_inode_lock
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 2ecca24e1001..f34cb92f3151 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -2874,7 +2874,7 @@ static noinline_for_stack int prealloc_file_extent_cluster(
if (ret)
return ret;
- btrfs_inode_lock(&inode->vfs_inode, 0);
+ btrfs_inode_lock(inode, 0);
for (nr = 0; nr < cluster->nr; nr++) {
struct extent_state *cached_state = NULL;