public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Alignment of bitmaps for ext2_set_bit et al.
@ 2004-08-19 11:16 Paul Mackerras
  2004-08-19 11:22 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2004-08-19 11:16 UTC (permalink / raw)
  To: akpm, viro; +Cc: Olof Johansson, linux-kernel

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)?

Olof has made a patch that uses atomics for these on ppc64 rather than
locking and unlocking a lock, but it will only work correctly if the
bitmap is always 8-byte aligned.

Paul.

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

end of thread, other threads:[~2004-08-19 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-08-19 20:39   ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox