Home
last modified time | relevance | path

Searched hist:"6 f5097e3367a7c0751e165e4c15bc30511a4ba38" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/xfs/
H A Dxfs_inode.cdiff 6f5097e3367a7c0751e165e4c15bc30511a4ba38 Sun May 29 19:56:33 CDT 2022 Brian Foster <bfoster@redhat.com> xfs: fix xfs_ifree() error handling to not leak perag ref

For some reason commit 9a5280b312e2e ("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: 9a5280b312e2e ("xfs: reorder iunlink remove operation in xfs_ifree")
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>