proc: fix kflags to uflags copying in /proc/kpageflags
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 11 Mar 2009 01:00:04 +0000 (09:00 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Mar 2009 14:43:33 +0000 (07:43 -0700)
commitad3bdefe877afb47480418fdb05ecd42842de65e
tree9124ed674d39d86160349d84e4112a7c54120c2b
parent16b71fdf97599f1b1b7f38418ee9922d9f117396
proc: fix kflags to uflags copying in /proc/kpageflags

Fix kpf_copy_bit(src,dst) to be kpf_copy_bit(dst,src) to match the
actual call patterns, e.g. kpf_copy_bit(kflags, KPF_LOCKED, PG_locked).

This misplacement of src/dst only affected reporting of PG_writeback,
PG_reclaim and PG_buddy. For others kflags==uflags so not affected.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/page.c