xfs: do not do pointer arithmetic on extent records
commitf1c63b73cf60dc4800cde5ce7fd9466c419e5e36
authorChristoph Hellwig <hch@infradead.org>
Wed, 11 May 2011 15:04:09 +0000 (11 15:04 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 25 May 2011 15:48:37 +0000 (25 10:48 -0500)
treedf9250617bbf4e7521c9b25a2d7b3a0ffb09c969
parent00239acf36d3bba8e7c0609e6c473d6e408a2135
xfs: do not do pointer arithmetic on extent records

We need to call xfs_iext_get_ext for the previous extent to get a
valid pointer, and can't just do pointer arithmetics as they might
be in different pages.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lachlan McIlroy <lmcilroy@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_bmap.c