diff options
author | David Sterba <dsterba@suse.com> | 2025-02-18 01:16:46 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 20:35:44 +0100 |
commit | 308a02a447cf6685becdafaadf50fff3b95271d2 (patch) | |
tree | a1c8728551afff002997cb54254cc10449c9596d /fs/btrfs/props.c | |
parent | a0680a946f199f6328c82175f4a77db1e9d66bf5 (diff) |
btrfs: pass struct btrfs_inode to btrfs_load_inode_props()
Pass a struct btrfs_inode to btrfs_load_inode_props() as it's an
internal interface, allowing to remove some use of BTRFS_I.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/props.c')
-rw-r--r-- | fs/btrfs/props.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c index b8fa34e16abb..74d3217fc686 100644 --- a/fs/btrfs/props.c +++ b/fs/btrfs/props.c @@ -273,12 +273,13 @@ static void inode_prop_iterator(void *ctx, set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags); } -int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path) +int btrfs_load_inode_props(struct btrfs_inode *inode, struct btrfs_path *path) { - struct btrfs_root *root = BTRFS_I(inode)->root; - u64 ino = btrfs_ino(BTRFS_I(inode)); + struct btrfs_root *root = inode->root; + u64 ino = btrfs_ino(inode); - return iterate_object_props(root, path, ino, inode_prop_iterator, inode); + return iterate_object_props(root, path, ino, inode_prop_iterator, + &inode->vfs_inode); } static int prop_compression_validate(const struct btrfs_inode *inode, |