]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: merge end_write_bio and flush_write_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Jun 2022 07:11:02 +0000 (09:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:34 +0000 (17:45 +0200)
commitd959c7e0a7e79f385b82af9953b45c1fc9e19028
tree828fa4df7f3a4b533792bd2158d40f759e7c8f5b
parent3d49f1263b05cefd13f4016e689acfaf006c2781
btrfs: merge end_write_bio and flush_write_bio

Merge end_write_bio and flush_write_bio into a single submit_write_bio
helper, that either submits the bio or ends it if a negative errno was
passed in.  This consolidates a lot of duplicated checks in the callers.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c