]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] md: simplify checking of available size when resizing an array
authorNeilBrown <neilb@suse.de>
Sat, 28 Oct 2006 17:38:30 +0000 (10:38 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 28 Oct 2006 18:30:51 +0000 (11:30 -0700)
commit01ab5662f573fe3a6bcefa200f15ab3069cec8a3
tree6a3280e26f6f65673394dc8ab3b39897d1c11c18
parent2b6e845986347ef86729e8651908af3e8a8441f5
[PATCH] md: simplify checking of available size when resizing an array

When "mdadm --grow --size=xxx" is used to resize an array (use more or less of
each device), we check the new siza against the available space in each
device.

We already have that number recorded in rdev->size, so calculating it is
pointless (and wrong in one obscure case).

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