]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: split inode ref processing from __add_inode_ref() into a helper
authorFilipe Manana <fdmanana@suse.com>
Mon, 23 Jun 2025 10:22:48 +0000 (11:22 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:04 +0000 (23:58 +0200)
commit06f77c659e6a231a4d4262bdd6a1c7dc3cb4c44e
treeb96a308d10b496d192a768fce07a2f2d817f9557
parent98060e1611177ddc842601a58258876ab435fdbf
btrfs: split inode ref 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 refs 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