summaryrefslogtreecommitdiffstats
path: root/include/linux/raid/md_u.h
diff options
context:
space:
mode:
authorNeilBrown2005-06-22 02:17:13 +0200
committerLinus Torvalds2005-06-22 04:07:43 +0200
commit57afd89f98a990747445f01c458ecae64263b2f8 (patch)
treecab9f5941f32299bc97936e111f6552ebcee9cf6 /include/linux/raid/md_u.h
parent[PATCH] md: improve locking on 'safemode' and move superblock writes (diff)
downloadkernel-qcow2-linux-57afd89f98a990747445f01c458ecae64263b2f8.tar.gz
kernel-qcow2-linux-57afd89f98a990747445f01c458ecae64263b2f8.tar.xz
kernel-qcow2-linux-57afd89f98a990747445f01c458ecae64263b2f8.zip
[PATCH] md: improve the interface to sync_request
1/ change the return value (which is number-of-sectors synced) from 'int' to 'sector_t'. The number of sectors is usually easily small enough to fit in an int, but if resync needs to abort, it may want to return the total number of remaining sectors, which could be large. Also errors cannot be returned as negative numbers now, so use 0 instead 2/ Add a 'skipped' return parameter to allow the array to report that it skipped the sectors. This allows md to take this into account in the speed calculations. Currently there is no important skipping, but the bitmap-based-resync that is coming will use this. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/md_u.h')
0 files changed, 0 insertions, 0 deletions