linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] md: sector_t conversions
@ 2008-07-10  9:15 Andre Noll
  2008-07-10  9:15 ` [PATCH 1/5] md: Make update_size() take the number of sectors Andre Noll
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Andre Noll @ 2008-07-10  9:15 UTC (permalink / raw)
  To: linux-raid

Hi

here is the first batch of patches that aim to change the internal
representations of sizes of raid devices from 1K blocks to 512 byte
sectors.

Patches 1-3 change the internal functions update_size(),
calc_dev_size() and calc_dev_sboffset() so that they take/return a
sector count instead of a block count. Patch 4 changes the semantics
of rdev->sb_offset so that its value now represents the number of the
start sector instead of the start block. Patch 5 removes some macros
that have become unused due to this conversion.

These changes are all simple and straight-forward, but it's easy to
make mistakes because there's no help from the compiler. So please
review carefully.


 drivers/md/bitmap.c       |   10 ++--
 drivers/md/md.c           |  111 +++++++++++++++++++++------------------------
 include/linux/raid/md_k.h |    2 +-
 include/linux/raid/md_p.h |    3 -
 4 files changed, 58 insertions(+), 68 deletions(-)

Regards
Andre

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-07-21 10:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10  9:15 [PATCH 0/5] md: sector_t conversions Andre Noll
2008-07-10  9:15 ` [PATCH 1/5] md: Make update_size() take the number of sectors Andre Noll
2008-07-11 10:56   ` Neil Brown
2008-07-10  9:15 ` [PATCH 2/5] md: Replace calc_dev_size() by calc_num_sectors() Andre Noll
2008-07-10  9:15 ` [PATCH 3/5] md: Make calc_dev_sboffset() return a sector count Andre Noll
2008-07-11 11:04   ` Neil Brown
2008-07-10  9:15 ` [PATCH 4/5] md: Turn rdev->sb_offset into a sector-based quantity Andre Noll
2008-07-11 11:15   ` Neil Brown
2008-07-17  9:40     ` Andre Noll
2008-07-21 10:38       ` Neil Brown
2008-07-10  9:15 ` [PATCH 5/5] md: Remove some unused macros Andre Noll
2008-07-11 12:18 ` [PATCH 0/5] md: sector_t conversions Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).