summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc.c2
-rw-r--r--fs/xfs/xfs_itable.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c
index 66efc702452a..0b29918291ff 100644
--- a/fs/xfs/libxfs/xfs_ialloc.c
+++ b/fs/xfs/libxfs/xfs_ialloc.c
@@ -2232,7 +2232,7 @@ xfs_imap_lookup(
2232 } 2232 }
2233 2233
2234 xfs_trans_brelse(tp, agbp); 2234 xfs_trans_brelse(tp, agbp);
2235 xfs_btree_del_cursor(cur, XFS_BTREE_NOERROR); 2235 xfs_btree_del_cursor(cur, error ? XFS_BTREE_ERROR : XFS_BTREE_NOERROR);
2236 if (error) 2236 if (error)
2237 return error; 2237 return error;
2238 2238
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index f41b0c3fddab..930ebd86beba 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -473,7 +473,8 @@ xfs_bulkstat(
473 * pending error, then we are done. 473 * pending error, then we are done.
474 */ 474 */
475del_cursor: 475del_cursor:
476 xfs_btree_del_cursor(cur, XFS_BTREE_NOERROR); 476 xfs_btree_del_cursor(cur, error ?
477 XFS_BTREE_ERROR : XFS_BTREE_NOERROR);
477 xfs_buf_relse(agbp); 478 xfs_buf_relse(agbp);
478 if (error) 479 if (error)
479 break; 480 break;