summaryrefslogtreecommitdiff
path: root/fs/xfs/quota/xfs_qm.c
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@sgi.com>2008-03-27 18:01:14 +1100
committerLachlan McIlroy <lachlan@sgi.com>2008-03-27 18:01:14 +1100
commit329e0dcd2f78ba3eeccd9b55fc4df439d96b86c2 (patch)
tree1d59d969348f3619a6e67b49e946b2d6503535b3 /fs/xfs/quota/xfs_qm.c
parent8407a618c4f51ee8d32615a76fbc4f4c735253fd (diff)
[XFS] Prevent xfs_bmap_check_leaf_extents() from referencing unmapped
memory. While investigating the extent corruption bug I ran into this bug in debug only code. xfs_bmap_check_leaf_extents() loops through the leaf blocks of the extent btree checking that every extent is entirely before the next extent. It also compares the last extent in the previous block to the first extent in the current block when the previous block has been released and potentially unmapped. So take a copy of the last extent instead of a pointer. Also move the last extent check out of the loop because we only need to do it once. SGI-PV: 976035 SGI-Modid: xfs-linux-melb:xfs-kern:30718a Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
0 files changed, 0 insertions, 0 deletions