mm: use false for bool variable
Fixes coccicheck warnings: mm/zbud.c:246:1-20: WARNING: Assignment of 0/1 to bool variable mm/mremap.c:777:2-8: WARNING: Assignment of 0/1 to bool variable mm/huge_memory.c:525:9-10: WARNING: return of 0/1 in function 'is_transparent_hugepage' with return type bool Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/1586835930-47076-1-git-send-email-zou_wei@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
parent
783266f208
commit
42e2e917e3
@ -770,7 +770,7 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
|
|||||||
out:
|
out:
|
||||||
if (offset_in_page(ret)) {
|
if (offset_in_page(ret)) {
|
||||||
vm_unacct_memory(charged);
|
vm_unacct_memory(charged);
|
||||||
locked = 0;
|
locked = false;
|
||||||
}
|
}
|
||||||
up_write(¤t->mm->mmap_sem);
|
up_write(¤t->mm->mmap_sem);
|
||||||
if (locked && new_len > old_len)
|
if (locked && new_len > old_len)
|
||||||
|
@ -242,7 +242,7 @@ static struct zbud_header *init_zbud_page(struct page *page)
|
|||||||
zhdr->last_chunks = 0;
|
zhdr->last_chunks = 0;
|
||||||
INIT_LIST_HEAD(&zhdr->buddy);
|
INIT_LIST_HEAD(&zhdr->buddy);
|
||||||
INIT_LIST_HEAD(&zhdr->lru);
|
INIT_LIST_HEAD(&zhdr->lru);
|
||||||
zhdr->under_reclaim = 0;
|
zhdr->under_reclaim = false;
|
||||||
return zhdr;
|
return zhdr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user