summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-06-03 08:55:08 +0300
committerDavid Sterba <dsterba@suse.com>2020-07-27 12:55:26 +0200
commit906c448c3dc3189d83bf644ec453d49737371b00 (patch)
tree340d290f012a6eafd653fc2826be34dc6f738eec /fs/btrfs/tree-log.c
parentbd242a08a690e98d9e9eb7ab51580d4a86b76c6c (diff)
downloadlinux-stable-906c448c3dc3189d83bf644ec453d49737371b00.tar.gz
linux-stable-906c448c3dc3189d83bf644ec453d49737371b00.tar.bz2
linux-stable-906c448c3dc3189d83bf644ec453d49737371b00.zip
btrfs: make __btrfs_drop_extents take btrfs_inode
It has only 4 uses of a vfs_inode for inode_sub_bytes but unifies the interface with the non __ prefixed version. Will also makes converting its callers to btrfs_inode easier. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index cd5348f352dd..df6d4e3e40b1 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -4151,7 +4151,7 @@ static int log_one_extent(struct btrfs_trans_handle *trans,
if (ret)
return ret;
- ret = __btrfs_drop_extents(trans, log, &inode->vfs_inode, path, em->start,
+ ret = __btrfs_drop_extents(trans, log, inode, path, em->start,
em->start + em->len, NULL, 0, 1,
sizeof(*fi), &extent_inserted);
if (ret)