]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd37b73813540fd5cc552b44bbeb11b1fa4e47e79
tree0128d05a5a3d51704f25ad4622b5dad4078d1430
parentd4f150492ee6976c809839d22a08afd2a2bc95a4
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