]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: split inode extref processing from __add_inode_ref() into a helper
authorFilipe Manana <fdmanana@suse.com>
Mon, 23 Jun 2025 11:54:40 +0000 (12:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:04 +0000 (23:58 +0200)
commit0c6f37eaa5454236b8343ca48cd7a77ebad662e3
tree9544452f5b5c7005b63b7681d3f194a377db2be0
parent06f77c659e6a231a4d4262bdd6a1c7dc3cb4c44e
btrfs: split inode extref processing from __add_inode_ref() into a helper

The __add_inode_ref() function is quite big and with too much nesting, so
move the code that processes inode extrefs into a helper function, to make
the function easier to read and reduce the level of indentation too.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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