md: move test for whether level supports bitmap to correct place
authorNeilBrown <neilb@suse.de>
Wed, 9 May 2007 09:35:36 +0000 (02:35 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:57 +0000 (12:30 -0700)
commite11e93facc38fb264a5ff1e154ebb2f11dc5cffa
tree0128d05a5a3d51704f25ad4622b5dad4078d1430
parentc3f94b40e1676172dfa88abfffd8baffe7ac607c
md: move test for whether level supports bitmap to correct place

We need to check for internal-consistency of superblock in load_super.
validate_super is for inter-device consistency.

With the test in the wrong place, a badly created array will confuse md rather
an produce sensible errors.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c