Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07a4b92 authored by Helge Bahmann's avatar Helge Bahmann Committed by Alexey Dobriyan
Browse files

proc: fix PG_locked reporting in /proc/kpageflags



Expr always evaluates to zero.

Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent f7e603ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) |