[PATCH 06/49] libxfs: fix byte swapping on constants

Mark Tinguely tinguely at sgi.com
Fri Aug 2 08:51:52 CDT 2013


On 07/19/13 01:44, Dave Chinner wrote:
> From: Dave Chinner<dchinner at redhat.com>
>
> The kernel code uses cpu_to_beXX() on constants in switch()
> statements for magic numbers in the btree code. Th ebyte swapping
> infratructure isn't hooked up to the proper byte swap macros to make
> this work, so fix it and then swap all the generic btree code over
> to match the kernel code.
>
> Signed-off-by: Dave Chinner<dchinner at redhat.com>
> ---

sync to include/uapi/linux/swab.h and (IMO backwards) switch/case 
statements in xfs_allocbt_verify() like kernel commit ee1a47ab.

Reviewed-by: Mark Tinguely <tinguely at sgi.com>



More information about the xfs mailing list