diff options
| author | David Sterba <dsterba@suse.com> | 2022-10-27 02:41:32 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2022-12-05 18:00:54 +0100 |
| commit | bd54766e40df1300564babbbc31866d36c0c4bb6 (patch) | |
| tree | e5ab4e6c205e3035c7fb2dc69e37cec0b36fcc7e /fs/btrfs/inode.c | |
| parent | 62798a491561e1e1bbbd08873561532f19525fbf (diff) | |
| download | linux-bd54766e40df1300564babbbc31866d36c0c4bb6.tar.gz linux-bd54766e40df1300564babbbc31866d36c0c4bb6.tar.bz2 linux-bd54766e40df1300564babbbc31866d36c0c4bb6.zip | |
btrfs: pass btrfs_inode to btrfs_clear_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/inode.c')
| -rw-r--r-- | fs/btrfs/inode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a43d7a063807..59ec9b2ef508 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2471,11 +2471,10 @@ void btrfs_set_delalloc_extent(struct btrfs_inode *inode, struct extent_state *s * Once a range is no longer delalloc this function ensures that proper * accounting happens. */ -void btrfs_clear_delalloc_extent(struct inode *vfs_inode, +void btrfs_clear_delalloc_extent(struct btrfs_inode *inode, struct extent_state *state, u32 bits) { - struct btrfs_inode *inode = BTRFS_I(vfs_inode); - struct btrfs_fs_info *fs_info = btrfs_sb(vfs_inode->i_sb); + struct btrfs_fs_info *fs_info = inode->root->fs_info; u64 len = state->end + 1 - state->start; u32 num_extents = count_max_extents(fs_info, len); |
