]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Simplify btrfs_submit_bio_hook
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Oct 2011 03:23:12 +0000 (23:23 -0400)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:33 +0000 (01:45 +0100)
commit97ec6af049153359432dbf3ce87743a6c30d6970
tree718f160e8b4edaa31d1747b6996fc60623903227
parent0f396f0c42fef774ec68f541ef5fab9b5c5da78a
btrfs: Simplify btrfs_submit_bio_hook

btrfs_submit_bio_hook currently calls btrfs_bio_wq_end_io in either case
of an if statement that determines one of the arguments.

This patch moves the function call outside of the if statement and uses it
to only determine the different argument. This allows us to catch an
error in one place in a more visually obvious way.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
fs/btrfs/inode.c