public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: Andrew Morton <akpm@osdl.org>
Cc: paulus@samba.org, viro@parcelfarce.linux.theplanet.co.uk,
	olof@austin.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: Alignment of bitmaps for ext2_set_bit et al.
Date: Thu, 19 Aug 2004 07:42:55 -0700	[thread overview]
Message-ID: <20040819074255.00e27060.davem@redhat.com> (raw)
In-Reply-To: <20040819042234.75020cbc.akpm@osdl.org>

On Thu, 19 Aug 2004 04:22:34 -0700
Andrew Morton <akpm@osdl.org> wrote:

> Paul Mackerras <paulus@samba.org> wrote:
> >
> > What can we assume about the alignment of the bitmap pointer passed to
> > the ext2_{set,clear}_bit_atomic functions?  Can we assume that they
> > will be aligned to an long boundary (8 bytes on 64-bit)?
> 
> For ext2 and ext3 it's safe to assume that they are 1024-byte aligned.
> 
> But it's possible that other filesystems are using these (awfully named)
> functions.

FWIW, I've been using 4-byte word atomics for those routines
on sparc64 and have never gotten an unaligned trap for it yet.

  reply	other threads:[~2004-08-19 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-19 11:16 Alignment of bitmaps for ext2_set_bit et al Paul Mackerras
2004-08-19 11:22 ` Andrew Morton
2004-08-19 14:42   ` David S. Miller [this message]
2004-08-19 20:39   ` Olof Johansson

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=20040819074255.00e27060.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@austin.ibm.com \
    --cc=paulus@samba.org \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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