From: Christoph Hellwig Date: Sun, 18 Sep 2011 20:41:06 +0000 (+0000) Subject: xfs: dont ignore error code from xfs_bmbt_update X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0eab14e74d2d7b22d065e18a1cdebcf7716debf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Alex Elder --- 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( 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;