]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: rework refcount cow recovery error handling
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:47:13 +0000 (12:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:47:13 +0000 (12:47 +1100)
commit22a693224bf7e473ff5fd8efe4cefaaf74217157
tree1b6bf9d45260bbcd3611f9b10dc2fc9bba623714
parent09a5b0e231157cbe727c6e38d7641c5d4edeca87
xfs: rework refcount cow recovery error handling

Source kernel commit: 6f97077ff6ef28e0f3b361b6ba9c95a222ef384b

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>
libxfs/xfs_refcount.c