]> git.baikalelectronics.ru Git - kernel.git/commit
um: Fix __swp_type()
authorRichard Weinberger <richard@nod.at>
Sat, 14 Apr 2012 15:46:01 +0000 (17:46 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 21 May 2012 19:09:35 +0000 (21:09 +0200)
commitf2d70f63d07dde35038d143f2291f75c99fd4d67
treeed106b9b9f1f0650792b602f9f47571406ee6ebd
parent829d67ae1834e329c349037d1c212d148a5429cc
um: Fix __swp_type()

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.

CC: stable@kernel.org
Analyzed-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/pgtable.h