]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: fix byte swapping on constants
authorDave Chinner <dchinner@redhat.com>
Wed, 4 Sep 2013 22:05:10 +0000 (22:05 +0000)
committerRich Johnston <rjohnston@sgi.com>
Mon, 16 Sep 2013 20:14:40 +0000 (15:14 -0500)
commitc0adfb03bb193935f54cc6bd6f4a5466e08007da
treeb3430075a28e822ec52359f866ab2d48d4b42e4f
parent77ec5ff42e18b24119a4848001a1f3e50725bdfd
libxfs: fix byte swapping on constants

The kernel code uses cpu_to_beXX() on constants in switch()
statements for magic numbers in the btree code. The byte 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@redhat.com>
Review-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
include/swab.h
libxfs/xfs_alloc_btree.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_ialloc_btree.c