[PATCH] xfs: Abort intent log item in xfs_iflush() upon error to get buf
Dave Chinner
david at fromorbit.com
Tue Apr 12 16:16:19 CDT 2016
On Tue, Apr 12, 2016 at 11:10:13PM +0530, Shyam Kaushik wrote:
> Hi Dave,
>
> Your patch needs a minor correction.
>
> At start of xfs_iflush() either we must initialize "bp = NULL" or else
> xfs_imap_to_bp() when it hits an error need to set "*bpp = NULL".
> Otherwise with your patch we are having an uninitialized bp that
> corrupt_out is trying to do xfs_buf_relse().
Ok, I'll check that - I thought that xfs_trans_buf_read_map() was
initialising it to zero appropriately, but obviously I missed
something.
Thanks for testing!
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list