xfs
[Top] [All Lists]

TAKE 975411 - fix unaligned access in readdir

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: TAKE 975411 - fix unaligned access in readdir
From: lachlan@xxxxxxx (Lachlan McIlroy)
Date: Tue, 8 Jan 2008 15:34:36 +1100 (EST)
Sender: xfs-bounce@xxxxxxxxxxx
fix unaligned access in readdir

This patch should fix the issue seen on Alpha with unaligned accesses
in the new readdir code.   By aligning each dirent to sizeof(u64) we'll
avoid unaligned accesses.  To make doubly sure we're not hitting
problems also rearrange struct hack_dirent to avoid holes.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Date:  Tue Jan  8 15:33:20 AEDT 2008
Workarea:  redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-readdir
Inspected by:  Christoph Hellwig <hch@xxxxxx>
Author:  lachlan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:30302a
fs/xfs/linux-2.6/xfs_file.c - 1.162 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_file.c.diff?r1=text&tr1=1.162&r2=text&tr2=1.161&f=h
        - fix unaligned access in readdir




<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 975411 - fix unaligned access in readdir, Lachlan McIlroy <=