linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andre Noll <maan@systemlinux.org>
To: linux-raid@vger.kernel.org
Subject: [PATCH 0/5] md: sector_t conversions
Date: Thu, 10 Jul 2008 11:15:33 +0200	[thread overview]
Message-ID: <1215681338-32365-1-git-send-email-maan@systemlinux.org> (raw)

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

             reply	other threads:[~2008-07-10  9:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10  9:15 Andre Noll [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1215681338-32365-1-git-send-email-maan@systemlinux.org \
    --to=maan@systemlinux.org \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).