Skip to content

md: Make linear raid use sector_t for internal representations

Andre Noll linux-raid 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6md: linear.c: Fix typo in comment.drivers/md/linear.c+1 -10 replies
2/6md: linear.c: Remove pointless initialization of curr_offset.drivers/md/linear.c+0 -10 replies
3/6md: linear.c: Remove broken debug code.drivers/md/linear.c+0 -230 replies
4/6md: linear: Represent dev_info->size and dev_info->offset in sectors.drivers/md/linear.c include/linux/raid/linear.h+28 -270 replies
5/6md: linear.c: Make two local variables sector-based.drivers/md/linear.c+10 -100 replies
6/6md: Convert remaining 1k representations in linear.c to sectors.drivers/md/linear.c include/linux/raid/linear.h+21 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] md: Make linear raid use sector_t for internal representations

[try #2, rebased to Neil's for-next branch as of today]

here's a bunch of patches that convert all representations of internal variables in linear.c to sectors. Patches 1-3 are only trivial cleanups.

Patches #4 and #5 are straight-forward replacements of the size and offset fields of struct dev_info and some local variables respectively.

The only patch in this series that is not self-explanatory is #6 that converts the hash_spacing and the preshift fields of struct dev_info to sectors. I've added a detailed changelog message for this patch that explains the details of the changes introduced by this patch.

checkpatch.pl is happy with all six patches, and the patched kernel was tested by the test suite of mdadm. While the 00linear test was successful, a couple of other tests failed. However, this seems to be unrelated to the changes of this series because the same tests also failed with an unpached ubuntu-hardy kernel.