]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: ensure correct log item buffer alignment
authorDave Chinner <dchinner@redhat.com>
Sun, 9 Feb 2014 23:37:18 +0000 (10:37 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 9 Feb 2014 23:37:18 +0000 (10:37 +1100)
commit00bb6cc12ee527a786d84974932600e422f64c41
tree30e465d362e605c15490c4b224c930d10d6a3194
parentcf90e43e9018751ffa951adc520c2acf3d6d71f1
xfs: ensure correct log item buffer alignment

On 32 bit platforms, the log item vector headers are not 64 bit
aligned or sized. hence if we don't take care to align them
correctly or pad the buffer appropriately for 8 byte alignment, we
can end up with alignment issues when accessing the user buffer
directly as a structure.

To solve this, simply pad the buffer headers to 64 bit offset so
that the data section is always 8 byte aligned.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reported-by: Michael L. Semon <mlsemon35@gmail.com>
Tested-by: Michael L. Semon <mlsemon35@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_cil.c