From: kernel test robot <lkp(a)intel.com>
mm/truncate.c:41:9-10: WARNING: return of 0/1 in function '__clear_shadow_entry'
with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci
Fixes: 78a9d82e733f ("vfs: keep inodes with page cache off the inode shrinker
LRU")
CC: Johannes Weiner <hannes(a)cmpxchg.org>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
tree:
https://github.com/zen-kernel/zen-kernel 5.9/zen-sauce
head: a49dc684580cbc31949bfc4220f8ed5346382c49
commit: 78a9d82e733f1eae572c07bd62a40a405f9ae87a [19/24] vfs: keep inodes with page cache
off the inode shrinker LRU
truncate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -38,7 +38,7 @@ static bool __must_check __clear_shadow_
xas_set_update(&xas, workingset_update_node);
if (xas_load(&xas) != entry)
- return 0;
+ return false;
xas_store(&xas, NULL);
mapping->nrexceptional--;