]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commiteefdb262f0b347b95155110275d54e4dbc85043d
treeab7e37bb1a046cabb01479b313493731359c68eb
parent3c26103fd83bb8ed71ac22ccb23a979bb1a60062
[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