]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59bccd564fc7c6d638aeacdf87d4515f177832e5
treea9a757b6e55022684d04e186b92875e5a546959a
parent857eb1811227dbf7a1d87977272fb0ea70dbff55
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