diff options
| author | David Sterba <[email protected]> | 2022-01-31 18:16:41 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:28 +0000 |
| commit | e2877c2a032d821ca339dc333401e0c63bf67d5c (patch) | |
| tree | 5b956454d35a9c75ebfa29665ddb02fc65ea2cb4 /fs/btrfs/inode.c | |
| parent | btrfs: switch btrfs_ordered_extent::inode to struct btrfs_inode (diff) | |
| download | kernel-e2877c2a032d821ca339dc333401e0c63bf67d5c.tar.gz kernel-e2877c2a032d821ca339dc333401e0c63bf67d5c.zip | |
btrfs: pass a btrfs_inode to btrfs_compress_heuristic()
Pass a struct btrfs_inode to btrfs_compress_heuristic() as it's an
internal interface, allowing to remove some use of BTRFS_I.
Reviewed-by: Boris Burkov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
| -rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 510a12e03a05..87ab9db69976 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -876,7 +876,7 @@ static inline int inode_need_compress(struct btrfs_inode *inode, u64 start, if (btrfs_test_opt(fs_info, COMPRESS) || inode->flags & BTRFS_INODE_COMPRESS || inode->prop_compress) - return btrfs_compress_heuristic(&inode->vfs_inode, start, end); + return btrfs_compress_heuristic(inode, start, end); return 0; } |
