diff options
| author | Filipe Manana <[email protected]> | 2025-03-07 12:16:10 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-03-18 19:35:50 +0000 |
| commit | b204e5c7d4dce859bc2feed7685baf656e234f6d (patch) | |
| tree | 0117af49e724e082bbc2a032e39b5e352b289ddf /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: pass a btrfs_inode to fixup_inode_link_count() (diff) | |
| download | kernel-b204e5c7d4dce859bc2feed7685baf656e234f6d.tar.gz kernel-b204e5c7d4dce859bc2feed7685baf656e234f6d.zip | |
btrfs: make btrfs_iget() return a btrfs inode instead
It's an internal function and most of the time the callers are doing a lot
of BTRFS_I() calls on the returned VFS inode to get the btrfs inode, so
change the return type to struct btrfs_inode instead.
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index cd5c8b595ebb..b5a94b961663 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -595,7 +595,7 @@ int __init btrfs_init_cachep(void); void __cold btrfs_destroy_cachep(void); struct inode *btrfs_iget_path(u64 ino, struct btrfs_root *root, struct btrfs_path *path); -struct inode *btrfs_iget(u64 ino, struct btrfs_root *root); +struct btrfs_inode *btrfs_iget(u64 ino, struct btrfs_root *root); struct extent_map *btrfs_get_extent(struct btrfs_inode *inode, struct folio *folio, u64 start, u64 len); int btrfs_update_inode(struct btrfs_trans_handle *trans, |
