diff options
author | 2005-09-09 16:23:47 -0700 | |
---|---|---|
committer | 2005-09-09 16:39:10 -0700 | |
commit | 15945fee6f09bff1f86b1a735b5888dc59cf38e3 (patch) | |
tree | ed2f66ceccfa30867035e7ba7be46159e97e4e4d /lib/dec_and_lock.c | |
parent | [PATCH] md: add write-behind support for md/raid1 (diff) | |
download | wireguard-linux-15945fee6f09bff1f86b1a735b5888dc59cf38e3.tar.xz wireguard-linux-15945fee6f09bff1f86b1a735b5888dc59cf38e3.zip |
[PATCH] md: support md/linear array with components greater than 2 terabytes.
linear currently uses division by the size of the smallest componenet device
to find which device a request goes to. If that smallest device is larger
than 2 terabytes, then the division will not work on some systems.
So we introduce a pre-shift, and take care not to make the hash table too
large, much like the code in raid0.
Also get rid of conf->nr_zones, which is not needed.
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 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions