Skip to content

Commit 1e5efd7

Browse files
Darrick J. WongChandan Babu R
authored andcommitted
xfs: fix log recovery erroring out on refcount recovery failure
Per the comment in the error case of xfs_reflink_recover_cow, zero out any error (after shutting down the log) so that we actually kill any new intent items that might have gotten logged by later recovery steps. Discovered by xfs/434, which few people actually seem to run. Fixes: 2c1e31e ("xfs: place intent recovery under NOFS allocation context") Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
1 parent e6469b2 commit 1e5efd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/xfs/xfs_log_recover.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,6 +3532,7 @@ xlog_recover_finish(
35323532
* and AIL.
35333533
*/
35343534
xlog_force_shutdown(log, SHUTDOWN_LOG_IO_ERROR);
3535+
error = 0;
35353536
goto out_error;
35363537
}
35373538

0 commit comments

Comments
 (0)