summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorSaurav Girepunje <saurav.girepunje@gmail.com>2019-12-01 02:49:15 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2019-12-01 15:29:17 +0100
commit1d706679733634fc32a308f2201e6765b0c63c74 (patch)
treec0c2e7a0add561ed124c31dec19578d9d49bda58 /fs/buffer.c
parentocfs2: fix passing zero to 'PTR_ERR' warning (diff)
downloadlinux-1d706679733634fc32a308f2201e6765b0c63c74.tar.xz
linux-1d706679733634fc32a308f2201e6765b0c63c74.zip
fs/buffer.c: fix use true/false for bool type
Use true/false for bool return type of has_bh_in_lru(). Link: http://lkml.kernel.org/r/20191029040529.GA7625@saurav Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index d39838090b22..a30827a475df 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1423,10 +1423,10 @@ static bool has_bh_in_lru(int cpu, void *dummy)
for (i = 0; i < BH_LRU_SIZE; i++) {
if (b->bhs[i])
- return 1;
+ return true;
}
- return 0;
+ return false;
}
void invalidate_bh_lrus(void)