diff options
author | Helge Bahmann <helge.bahmann@secunet.com> | 2009-02-20 16:24:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-16 17:52:57 -0700 |
commit | def2e147971257c20af00d3c0f4e3b87e1763495 (patch) | |
tree | a62361caf0ae188c241f583843edbacc36fa482e | |
parent | 3ae64442d1606bc985daf77b55c1d764b1d91c33 (diff) | |
download | lwn-def2e147971257c20af00d3c0f4e3b87e1763495.tar.gz lwn-def2e147971257c20af00d3c0f4e3b87e1763495.zip |
proc: fix PG_locked reporting in /proc/kpageflags
commit e07a4b9217d1e97d2f3a62b6b070efdc61212110 upstream.
Expr always evaluates to zero.
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | fs/proc/proc_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index dd68a33de624..8463dd3c01f2 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -824,7 +824,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) | |