diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-09-18 16:41:06 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-11 22:15:07 -0400 |
commit | b0eab14e74d2d7b22d065e18a1cdebcf7716debf (patch) | |
tree | c5cf9e53fe4b74202689fbe792c349077841d641 /fs/xfs | |
parent | c6534249851d062113ab4d8d226be8dba8ecb92e (diff) |
xfs: dont ignore error code from xfs_bmbt_update
Fix a case in xfs_bmap_add_extent_unwritten_real where we aren't
passing the returned error on.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 2b31945ce9fe..bb31d37bf49b 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -1217,10 +1217,11 @@ xfs_bmap_add_extent_unwritten_real( | |||
1217 | goto done; | 1217 | goto done; |
1218 | if ((error = xfs_btree_decrement(cur, 0, &i))) | 1218 | if ((error = xfs_btree_decrement(cur, 0, &i))) |
1219 | goto done; | 1219 | goto done; |
1220 | if (xfs_bmbt_update(cur, LEFT.br_startoff, | 1220 | error = xfs_bmbt_update(cur, LEFT.br_startoff, |
1221 | LEFT.br_startblock, | 1221 | LEFT.br_startblock, |
1222 | LEFT.br_blockcount + new->br_blockcount, | 1222 | LEFT.br_blockcount + new->br_blockcount, |
1223 | LEFT.br_state)) | 1223 | LEFT.br_state); |
1224 | if (error) | ||
1224 | goto done; | 1225 | goto done; |
1225 | } | 1226 | } |
1226 | break; | 1227 | break; |