btrfs: factor out inode items copy loop from btrfs_log_inode()
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 Mar 2020 12:41:07 +0000 (12:41 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:56 +0000 (17:01 +0100)
commitda447009a25609327309f695b244710f12794471
treea9a757b6e55022684d04e186b92875e5a546959a
parenta5eeb3d17b979f7afe3ac68fe049ce8b0a039b03
btrfs: factor out inode items copy loop from btrfs_log_inode()

The function btrfs_log_inode() is quite large and so is its loop which
iterates the inode items from the fs/subvolume tree and copies them into
a log tree. Because this is a large loop inside a very large function
and because an upcoming patch in this series needs to add some more logic
inside that loop, move the loop into a helper function to make it a bit
more manageable.

Reviewed-by: Josef Bacik <josef@toxicpanda.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