]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] xfs_bmapi fails to update the previous extent pointer
authorDavid Chinner <dgc@sgi.com>
Tue, 5 Jun 2007 06:24:15 +0000 (16:24 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Sat, 14 Jul 2007 05:29:37 +0000 (15:29 +1000)
commitad14edf99557e7d5d4a19e36fa58ae7176994c1d
treeeb28b9003453d55c21b81da63ce1fb4a897023ed
parent16e755d57b7a3f910f93a11d891f7c91c6b6dce0
[XFS] xfs_bmapi fails to update the previous extent pointer

When processing multiple extent maps, xfs_bmapi needs to keep track of the
extent behind the one it is currently working on to be able to trim extent
ranges correctly. Failing to update the previous pointer can result in
corrupted extent lists in memory and this will result in panics or assert
failures.

Update the previous pointer correctly when we move to the next extent to
process.

SGI-PV: 965631
SGI-Modid: xfs-linux-melb:xfs-kern:28773a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_bmap.c