]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not add extra mirror when dev_replace target dev is not available
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 14 Mar 2017 20:33:59 +0000 (13:33 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:25 +0000 (14:07 +0200)
commit93889f35f6ecdaeb92c2a33cf0050f9fd081a42d
tree4af0d1f863fa09a4880c8883e84e4869e0cb7bcd
parent8f79990cc36c540ac623a987047397935af43f89
Btrfs: do not add extra mirror when dev_replace target dev is not available

With this, we can avoid allocating memory for dev replace copies if the
target dev is not available.

Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c