Commit 9af0a70c authored by Yingping Lu's avatar Yingping Lu Committed by Nathan Scott

[XFS] Fixed a bug in reporting extent list for attribute fork running

xfs_bmap -a.

SGI-PV: 944075
SGI-Modid: xfs-linux:xfs-kern:200860a
Signed-off-by: default avatarYingping Lu <yingping@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 7f14d0a0
...@@ -5725,11 +5725,12 @@ xfs_getbmap( ...@@ -5725,11 +5725,12 @@ xfs_getbmap(
out.bmv_offset = XFS_FSB_TO_BB(mp, map[i].br_startoff); out.bmv_offset = XFS_FSB_TO_BB(mp, map[i].br_startoff);
out.bmv_length = XFS_FSB_TO_BB(mp, map[i].br_blockcount); out.bmv_length = XFS_FSB_TO_BB(mp, map[i].br_blockcount);
ASSERT(map[i].br_startblock != DELAYSTARTBLOCK); ASSERT(map[i].br_startblock != DELAYSTARTBLOCK);
if (prealloced && if (map[i].br_startblock == HOLESTARTBLOCK &&
map[i].br_startblock == HOLESTARTBLOCK && ((prealloced && out.bmv_offset + out.bmv_length == bmvend) ||
out.bmv_offset + out.bmv_length == bmvend) { whichfork == XFS_ATTR_FORK )) {
/* /*
* came to hole at end of file * came to hole at end of file or the end of
attribute fork
*/ */
goto unlock_and_return; goto unlock_and_return;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment