lkml.org 
[lkml]   [2004]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Alignment of bitmaps for ext2_set_bit et al.
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.040 / U:7.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site