Commit 6f5097e
xfs: fix xfs_ifree() error handling to not leak perag ref
For some reason commit 9a5280b ("xfs: reorder iunlink remove
operation in xfs_ifree") replaced a jump to the exit path in the
event of an xfs_difree() error with a direct return, which skips
releasing the perag reference acquired at the top of the function.
Restore the original code to drop the reference on error.
Fixes: 9a5280b ("xfs: reorder iunlink remove operation in xfs_ifree")
Signed-off-by: Brian Foster <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>1 parent a54f78d commit 6f5097e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2622 | 2622 | | |
2623 | 2623 | | |
2624 | 2624 | | |
2625 | | - | |
| 2625 | + | |
2626 | 2626 | | |
2627 | 2627 | | |
2628 | 2628 | | |
| |||
0 commit comments