Fixes BUG_ON in find_next_devid() and fixes to return real error in clone_fs_devices(). These two patches can be send to be independent.
Anand Jain (2): btrfs: fix BUG_ON with proper error handle in find_next_devid btrfs: fix error return on alloc fail in clone_fs_devices fs/btrfs/volumes.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) -- 2.21.0 (Apple Git-120)