Linux-Fsdevel Archive on
 help / color / Atom feed
From: Saurav Girepunje <>
Subject: [PATCH] fs: buffer.c: Fix use true/false for bool type
Date: Tue, 29 Oct 2019 09:35:29 +0530
Message-ID: <20191029040529.GA7625@saurav> (raw)

Use true/false for bool return type of has_bh_in_lru().

Signed-off-by: Saurav Girepunje <>
 fs/buffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 86a38b979323..66a9fe8310c7 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1385,10 +1385,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)

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191029040529.GA7625@saurav \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Fsdevel Archive on

Archives are clonable:
	git clone --mirror linux-fsdevel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-fsdevel linux-fsdevel/ \
	public-inbox-index linux-fsdevel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone