]> err.no Git - linux-2.6/commit
mm: try both endianess when checking for endianess
authorChris Dearman <chris@mips.com>
Mon, 28 Apr 2008 09:12:19 +0000 (02:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:19 +0000 (08:58 -0700)
commit797df5749032c2286bc7ff3a52de41fde0cdf0a5
tree38ebb9f0672c6eeab3269cc875f22422fa2c908b
parent19770b32609b6bf97a3dece2529089494cbfc549
mm: try both endianess when checking for endianess

When checking for the swap header try byteswapping the endianess dependent
fields to allow the swap partition to be shared between big & little endian
systems.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c