diff options
| author | David Sterba <[email protected]> | 2022-06-15 13:03:11 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:28 +0000 |
| commit | 8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2 (patch) | |
| tree | 5e0947cfb9a42d37996c9ca045b98a3b87f2753a /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: pass a btrfs_inode to btrfs_readdir_get_delayed_items() (diff) | |
| download | kernel-8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2.tar.gz kernel-8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2.zip | |
btrfs: pass a btrfs_inode to is_data_inode()
Pass a struct btrfs_inode to is_data_inode() 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/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index b0fe610d5940..8b45d7e85d86 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -418,9 +418,9 @@ static inline bool btrfs_is_free_space_inode(const struct btrfs_inode *inode) return test_bit(BTRFS_INODE_FREE_SPACE_INODE, &inode->runtime_flags); } -static inline bool is_data_inode(const struct inode *inode) +static inline bool is_data_inode(const struct btrfs_inode *inode) { - return btrfs_ino(BTRFS_I(inode)) != BTRFS_BTREE_INODE_OBJECTID; + return btrfs_ino(inode) != BTRFS_BTREE_INODE_OBJECTID; } static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, |
