Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12216
b: refs/heads/master
c: 9af0a70
h: refs/heads/master
v: v3
  • Loading branch information
Yingping Lu authored and Nathan Scott committed Nov 2, 2005
1 parent 99f0c65 commit 55d655a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f14d0a013eeae8f8548e9ac10699465de2adacc
refs/heads/master: 9af0a70c07a0e7575ebbdb42ca9fb29ffaaf77c9
13 changes: 7 additions & 6 deletions trunk/fs/xfs/xfs_bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5725,12 +5725,13 @@ xfs_getbmap(
out.bmv_offset = XFS_FSB_TO_BB(mp, map[i].br_startoff);
out.bmv_length = XFS_FSB_TO_BB(mp, map[i].br_blockcount);
ASSERT(map[i].br_startblock != DELAYSTARTBLOCK);
if (prealloced &&
map[i].br_startblock == HOLESTARTBLOCK &&
out.bmv_offset + out.bmv_length == bmvend) {
/*
* came to hole at end of file
*/
if (map[i].br_startblock == HOLESTARTBLOCK &&
((prealloced && out.bmv_offset + out.bmv_length == bmvend) ||
whichfork == XFS_ATTR_FORK )) {
/*
* came to hole at end of file or the end of
attribute fork
*/
goto unlock_and_return;
} else {
out.bmv_block =
Expand Down

0 comments on commit 55d655a

Please sign in to comment.