md: fix some issues with alloc_disk_sb()
authorNeilBrown <neilb@suse.com>
Wed, 2 Nov 2016 03:16:49 +0000 (14:16 +1100)
committerShaohua Li <shli@fb.com>
Mon, 7 Nov 2016 23:08:21 +0000 (15:08 -0800)
commit7f0f0d87fa172c71f74ea916d70765862ee2d53a
tree4c304ea8bfbea2907b8d135c7e5f7b846a0e3d75
parentcbb387323610295be9d36c51287b668c1140704f
md: fix some issues with alloc_disk_sb()

1/ don't print a warning if allocation fails.
 page_alloc() does that already.
2/ always check return status for error.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c