diff options
author | David Sterba <dsterba@suse.com> | 2025-02-18 03:19:47 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:44 +0300 |
commit | 101ab6d1ffb1b9f6cd72edb81f957f9293cb28aa (patch) | |
tree | 12fe857b19498b4189395d5ab41560ad7ab3364f /fs/btrfs/inode.c | |
parent | 308a02a447cf6685becdafaadf50fff3b95271d2 (diff) | |
download | linux-101ab6d1ffb1b9f6cd72edb81f957f9293cb28aa.tar.xz |
btrfs: pass struct btrfs_inode to btrfs_inode_inherit_props()
Pass a struct btrfs_inode to btrfs_inherit_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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9a503be660e8..84ee6e5c5a81 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -6461,11 +6461,13 @@ int btrfs_create_new_inode(struct btrfs_trans_handle *trans, if (IS_ERR(parent)) { ret = PTR_ERR(parent); } else { - ret = btrfs_inode_inherit_props(trans, inode, parent); + ret = btrfs_inode_inherit_props(trans, BTRFS_I(inode), + BTRFS_I(parent)); iput(parent); } } else { - ret = btrfs_inode_inherit_props(trans, inode, dir); + ret = btrfs_inode_inherit_props(trans, BTRFS_I(inode), + BTRFS_I(dir)); } if (ret) { btrfs_err(fs_info, |