]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: create helper function __check_raid_min_devices()
authorAnand Jain <anand.jain@oracle.com>
Sat, 13 Feb 2016 02:01:33 +0000 (10:01 +0800)
committerShan Hai <shan.hai@oracle.com>
Thu, 13 Jul 2017 05:20:13 +0000 (13:20 +0800)
commit9b2d3933f84165bbb8be165a84551272c504baac
treede9e255d1a0026980ef81849b238426aa03c508d
parent7342cd76bed218a5bdf23eeb21c490644f20f47d
btrfs: create helper function __check_raid_min_devices()

move a section of btrfs_rm_device() code to check for min number of the
devices into the function __check_raid_min_devices()

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Orabug: 26287586

(Cherry picked from commit f1fa7f264250f2cb60119aca3fd114c3f47070c2,
 drop the second argument of the btrfs_dev_replace_lock/unlock to
 match with the current kernel api)

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/btrfs/volumes.c