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
|