um: Fix __swp_type()
authorRichard Weinberger <richard@nod.at>
Sat, 14 Apr 2012 15:46:01 +0000 (17:46 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:47 +0000 (00:43 +0100)
commitff741084d380bd234a4d0ffba0c19e8047a14658
treecb667056545baa8d76f514d0f2fa17930a69fed2
parente22b65022898e212f80ca989e613179e318b8a79
um: Fix __swp_type()

commit 2b76ebaa728f8a3967c52aa189261c72fe56a6f1 upstream.

The current __swp_type() function uses a too small bitshift.
Using more than one swap files causes bad pages because
the type bits clash with other page flags.

Analyzed-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/um/include/asm/pgtable.h