]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make success path out of btrfs_init_dev_replace_tgtdev more clear
authorDavid Sterba <dsterba@suse.com>
Tue, 20 Mar 2018 14:37:08 +0000 (15:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:23 +0000 (18:07 +0200)
commit533665d568663683c49d4c41a86afa86530bb07a
tree4f740bceb00bc2e9a28a52ff2840b7bef21610b2
parentf2f4b5c6ca57d9438a4bdafb7d7331a1f6de2cc3
btrfs: make success path out of btrfs_init_dev_replace_tgtdev more clear

This is a preparatory cleanup that will make clear that the only
successful way out of btrfs_init_dev_replace_tgtdev will also set the
device_out to a valid pointer. With this guarantee, the callers can be
simplified.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/volumes.c