Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95011
b: refs/heads/master
c: 86c4d62
h: refs/heads/master
i:
  95009: d9f97da
  95007: 5704d2a
v: v3
  • Loading branch information
David Chinner authored and Lachlan McIlroy committed Apr 29, 2008
1 parent b1580a8 commit 42cdf77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: d349404ff14758dc9a2d3df032073ed795085860
refs/heads/master: 86c4d62305649848164ae311a0959fc569b0d964
13 changes: 5 additions & 8 deletions trunk/fs/xfs/xfs_iomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,7 @@ xfs_iomap_write_direct(
goto error_out;
}

if (unlikely(!imap.br_startblock &&
!(XFS_IS_REALTIME_INODE(ip)))) {
if (!(imap.br_startblock || XFS_IS_REALTIME_INODE(ip))) {
error = xfs_cmn_err_fsblock_zero(ip, &imap);
goto error_out;
}
Expand Down Expand Up @@ -686,8 +685,7 @@ xfs_iomap_write_delay(
goto retry;
}

if (unlikely(!imap[0].br_startblock &&
!(XFS_IS_REALTIME_INODE(ip))))
if (!(imap[0].br_startblock || XFS_IS_REALTIME_INODE(ip)))
return xfs_cmn_err_fsblock_zero(ip, &imap[0]);

*ret_imap = imap[0];
Expand Down Expand Up @@ -838,9 +836,9 @@ xfs_iomap_write_allocate(
* See if we were able to allocate an extent that
* covers at least part of the callers request
*/
if (unlikely(!imap.br_startblock &&
XFS_IS_REALTIME_INODE(ip)))
if (!(imap.br_startblock || XFS_IS_REALTIME_INODE(ip)))
return xfs_cmn_err_fsblock_zero(ip, &imap);

if ((offset_fsb >= imap.br_startoff) &&
(offset_fsb < (imap.br_startoff +
imap.br_blockcount))) {
Expand Down Expand Up @@ -934,8 +932,7 @@ xfs_iomap_write_unwritten(
if (error)
return XFS_ERROR(error);

if (unlikely(!imap.br_startblock &&
!(XFS_IS_REALTIME_INODE(ip))))
if (!(imap.br_startblock || XFS_IS_REALTIME_INODE(ip)))
return xfs_cmn_err_fsblock_zero(ip, &imap);

if ((numblks_fsb = imap.br_blockcount) == 0) {
Expand Down

0 comments on commit 42cdf77

Please sign in to comment.