]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: simplify sync/async submission in btrfs_submit_data_write_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jun 2022 10:04:11 +0000 (12:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:40 +0000 (17:45 +0200)
commitc501be615d9ebc2198cc0db46c925667c05edb61
treebf33770253e9d1b26b1cf207923bb7e7af237b18
parent9cbf24637b35f7070b4148506e61b814e4a3a662
btrfs: simplify sync/async submission in btrfs_submit_data_write_bio

btrfs_submit_data_write_bio special cases the reloc root because the
checksums are preloaded, but only does so for the !sync case.  The sync
case can't happen for data relocation, but just handling it more generally
significantly simplifies the logic.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c