um: Fix __swp_type()
authorRichard Weinberger <richard@nod.at>
Sat, 14 Apr 2012 15:46:01 +0000 (17:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:18:18 +0000 (15:18 +0800)
commit3d7a75d7dc0c8c8e60f8c40622b7e3519e702714
treedbd3d3786bfd92f35062c6683c9ad5aa3dfb485d
parent5f7bac87c60030bc2a0bb58789696f9624d5e8d9
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/include/asm/pgtable.h