]> git.baikalelectronics.ru Git - kernel.git/commit
md: Make update_size() take the number of sectors.
authorAndre Noll <maan@systemlinux.org>
Fri, 11 Jul 2008 12:02:22 +0000 (22:02 +1000)
committerNeil Brown <neilb@suse.de>
Fri, 11 Jul 2008 12:02:22 +0000 (22:02 +1000)
commit888c0e6c2b41b90c2ed9c3da11c90be7bca5b2f3
treeaf2c0a93855347bce2fc24ecffa27be035bc8ef0
parentdb16bcb0042532e2cb60b2fc249af1fb494d06fa
md: Make update_size() take the number of sectors.

Changing the internal representations of sizes of raid devices
from 1K blocks to sector counts (512B units) is desirable because
it allows to get rid of many divisions/multiplications and unnecessary
casts that are present in the current code.

This patch is a first step in this direction. It replaces the old
1K-based "size" argument of update_size() by "num_sectors" and
fixes up its two callers.

Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/md.c