[PATCH] xfs: reset buffer pointers before freeing them

Christoph Hellwig hch at infradead.org
Mon Apr 11 19:09:39 CDT 2011


>  			error = xlog_bread_noalign(log, ealign, sectbb, bp);
> -			if (error)
> -				break;
>  
> -			error = XFS_BUF_SET_PTR(bp, offset, bufblks);
> +			/* must reset buffer pointer even on error */
> +			error2 = XFS_BUF_SET_PTR(bp, offset, bufblks);

This seems to be incorrect both in the original and your version.


More information about the xfs mailing list