From: Helge Bahmann Date: Fri, 20 Feb 2009 13:24:12 +0000 (+0300) Subject: proc: fix PG_locked reporting in /proc/kpageflags X-Git-Tag: v2.6.28.8~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f0c63d33f21deffdf78fe7b506bb0ee2b4d249;p=thirdparty%2Fkernel%2Fstable.git proc: fix PG_locked reporting in /proc/kpageflags commit e07a4b9217d1e97d2f3a62b6b070efdc61212110 upstream. Expr always evaluates to zero. Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Alexey Dobriyan Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/proc/page.c b/fs/proc/page.c index e9f6cd70f4979..e9983837d08d4 100644 --- a/fs/proc/page.c +++ b/fs/proc/page.c @@ -107,7 +107,7 @@ static ssize_t kpageflags_read(struct file *file, char __user *buf, else kflags = ppage->flags; - uflags = kpf_copy_bit(KPF_LOCKED, PG_locked, kflags) | + uflags = kpf_copy_bit(kflags, KPF_LOCKED, PG_locked) | kpf_copy_bit(kflags, KPF_ERROR, PG_error) | kpf_copy_bit(kflags, KPF_REFERENCED, PG_referenced) | kpf_copy_bit(kflags, KPF_UPTODATE, PG_uptodate) |