| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 26/27] xfs: dont ignore error code from xfs_bmbt_update |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Sun, 18 Sep 2011 16:41:06 -0400 |
| References: | <20110918204040.266805129@xxxxxxxxxxxxxxxxxxxxxx> |
| User-agent: | quilt/0.48-1 |
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@xxxxxx>
Reviewed-by: Alex Elder <aelder@xxxxxxx>
Index: xfs/fs/xfs/xfs_bmap.c
===================================================================
--- xfs.orig/fs/xfs/xfs_bmap.c 2011-09-10 14:51:08.181546087 -0400
+++ xfs/fs/xfs/xfs_bmap.c 2011-09-10 14:51:21.154879343 -0400
@@ -1217,10 +1217,11 @@ xfs_bmap_add_extent_unwritten_real(
goto done;
if ((error = xfs_btree_decrement(cur, 0, &i)))
goto done;
- if (xfs_bmbt_update(cur, LEFT.br_startoff,
+ error = xfs_bmbt_update(cur, LEFT.br_startoff,
LEFT.br_startblock,
LEFT.br_blockcount + new->br_blockcount,
- LEFT.br_state))
+ LEFT.br_state);
+ if (error)
goto done;
}
break;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 18/27] xfs: rename allocation range fields in struct xfs_bmalloca, Christoph Hellwig |
|---|---|
| Next by Date: | [PATCH 24/27] xfs: pass bmalloca to xfs_bmap_add_extent_delay_real, Christoph Hellwig |
| Previous by Thread: | [PATCH 18/27] xfs: rename allocation range fields in struct xfs_bmalloca, Christoph Hellwig |
| Next by Thread: | [PATCH 24/27] xfs: pass bmalloca to xfs_bmap_add_extent_delay_real, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |