fs/buffer.c: fix use true/false for bool type
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sun, 1 Dec 2019 01:49:15 +0000 (17:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Dec 2019 14:29:17 +0000 (06:29 -0800)
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>
fs/buffer.c

index d39838090b22c456cf014f96d2f6b5afaa729b61..a30827a475dff301541e42b7041abc78c1bc9b31 100644 (file)
@@ -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)