Re: [PATCH 10/10] repair: BMBT prefetch needs to be CRC aware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  	/*
>  	 * do some validation on the block contents
>  	 */
> -	if ((be32_to_cpu(block->bb_magic) != XFS_BMAP_MAGIC) ||
> +	if ((block->bb_magic != cpu_to_be32(XFS_BMAP_MAGIC) &&
> +	     block->bb_magic != cpu_to_be32(XFS_BMAP_CRC_MAGIC)) ||
>  			(be16_to_cpu(block->bb_level) != level))

Seems like this should be factored into a well-documented helper
function.

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux