Commit 26b63be
xfs: Add error handling for xfs_reflink_cancel_cow_range
In xfs_inactive(), xfs_reflink_cancel_cow_range() is called
without error handling, risking unnoticed failures and
inconsistent behavior compared to other parts of the code.
Fix this issue by adding an error handling for the
xfs_reflink_cancel_cow_range(), improving code robustness.
Fixes: 6231848 ("xfs: check for cow blocks before trying to clear them")
Cc: [email protected] # v4.17
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Wentao Liang <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>1 parent fb95897 commit 26b63be
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
1407 | | - | |
1408 | | - | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1409 | 1412 | | |
1410 | 1413 | | |
1411 | 1414 | | |
| |||
0 commit comments