]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: rework refcount cow recovery error handling
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Oct 2016 06:23:07 +0000 (17:23 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Oct 2016 06:23:07 +0000 (17:23 +1100)
commit6a5196fda2287865d71fbf7a714aa1ce3ca996ad
treec541a0d113af184d0d45e3eddb3f89d434fdad58
parent9e98bd02ff120ba488c3b36c54dd22f05476f09f
xfs: rework refcount cow recovery error handling

The error handling in xfs_refcount_recover_cow_leftovers is confused
and can potentially leak memory, so rework it to release resources
correctly on error.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reported-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_refcount.c