]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use the inode item boolean everywhere in overwrite_item()
authorFilipe Manana <fdmanana@suse.com>
Fri, 29 Aug 2025 15:46:15 +0000 (16:46 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:19 +0000 (08:49 +0200)
commit2a13cfc949e591702f1288d62c691099c67e04ca
treeea6c96f26f3bac99b30c7b2d04fe507753002c88
parent6cb7f0b8c9b0d6a35682335fea88bd26f089306f
btrfs: use the inode item boolean everywhere in overwrite_item()

We have this boolean 'inode_item' to tell if we are processing an inode
item key and we use it in a couple of places while in another two places
we open code by checking if the key type matches the inode item type.
Make this consistent and use the boolean everywhere. Also rename it from
'inode_item' to 'is_inode_item', which makes it more clear that it's a
boolean and not an instance of struct btrfs_inode_item, and make it const
too.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c