]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: Fix md grow/size code to correctly find the maximum available space
authorNeilBrown <neilb@suse.de>
Mon, 27 Mar 2006 09:18:18 +0000 (01:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:45:03 +0000 (08:45 -0800)
commit25fb432dec3d77b3389dc597ed3e2f6561b50258
treef18b93cd8d9122dcf9a59cc9ff63d75be146bb11
parentc3be6609ef8a88c55d3ca28666a796f1d0bc3ec4
[PATCH] md: Fix md grow/size code to correctly find the maximum available space

An md array can be asked to change the amount of each device that it is using,
and in particular can be asked to use the maximum available space.  This
currently only works if the first device is not larger than the rest.  As
'size' gets changed and so 'fit' becomes wrong.  So check if a 'fit' is
required early and don't corrupt it.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c