Commit e07a4b9217d1e97d2f3a62b6b070efdc61212110
Committed by
Alexey Dobriyan
1 parent
f7e603ad8f
Exists in
master
and in
7 other branches
proc: fix PG_locked reporting in /proc/kpageflags
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/proc/page.c
... | ... | @@ -107,7 +107,7 @@ |
107 | 107 | else |
108 | 108 | kflags = ppage->flags; |
109 | 109 | |
110 | - uflags = kpf_copy_bit(KPF_LOCKED, PG_locked, kflags) | | |
110 | + uflags = kpf_copy_bit(kflags, KPF_LOCKED, PG_locked) | | |
111 | 111 | kpf_copy_bit(kflags, KPF_ERROR, PG_error) | |
112 | 112 | kpf_copy_bit(kflags, KPF_REFERENCED, PG_referenced) | |
113 | 113 | kpf_copy_bit(kflags, KPF_UPTODATE, PG_uptodate) | |