mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:40:54 +07:00
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>
This commit is contained in:
parent
f7e603ad8f
commit
e07a4b9217
@ -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) |
|
||||
|
Loading…
Reference in New Issue
Block a user