aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-io-tree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-27 02:41:32 +0200
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:54 +0100
commit2454151cdede9f6f3a2213ae84b07d9a9edb485e (patch)
tree194727095ab3a31198e63c2db9b5cda85f5d6b85 /fs/btrfs/extent-io-tree.c
parent0988fc7bda79feff046056f032fd149ab08e03d1 (diff)
btrfs: pass btrfs_inode to btrfs_merge_delalloc_extent
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/extent-io-tree.c')
-rw-r--r--fs/btrfs/extent-io-tree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/extent-io-tree.c b/fs/btrfs/extent-io-tree.c
index bbcc65593d1d..942212e1dbaf 100644
--- a/fs/btrfs/extent-io-tree.c
+++ b/fs/btrfs/extent-io-tree.c
@@ -347,8 +347,7 @@ static void merge_state(struct extent_io_tree *tree, struct extent_state *state)
if (other && other->end == state->start - 1 &&
other->state == state->state) {
if (tree->inode)
- btrfs_merge_delalloc_extent(&tree->inode->vfs_inode, state,
- other);
+ btrfs_merge_delalloc_extent(tree->inode, state, other);
state->start = other->start;
rb_erase(&other->rb_node, &tree->state);
RB_CLEAR_NODE(&other->rb_node);
@@ -358,8 +357,7 @@ static void merge_state(struct extent_io_tree *tree, struct extent_state *state)
if (other && other->start == state->end + 1 &&
other->state == state->state) {
if (tree->inode)
- btrfs_merge_delalloc_extent(&tree->inode->vfs_inode, state,
- other);
+ btrfs_merge_delalloc_extent(tree->inode, state, other);
state->end = other->end;
rb_erase(&other->rb_node, &tree->state);
RB_CLEAR_NODE(&other->rb_node);