[XFS] fix unaligned access in readdir
authorChristoph Hellwig <hch@infradead.org>
Thu, 10 Jan 2008 05:43:26 +0000 (16:43 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 11 Jan 2008 07:05:04 +0000 (18:05 +1100)
commitaea6ad0ce5e215ce99fe9e3edd9268f696862d8f
treeab7e37bb1a046cabb01479b313493731359c68eb
parentfd0b45dfd1858c6b49d06355a460bcf36d654c06
[XFS] 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.

SGI-PV: 975411
SGI-Modid: xfs-linux-melb:xfs-kern:30302a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_file.c