From: Li zeming <zeming@nfschina.com>
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Li zeming <zeming@nfschina.com>
Subject: [PATCH] fs-writeback: remove unnecessary ‘false’ values from wakeup_bdi
Date: Wed, 8 Feb 2023 09:17:42 +0800 [thread overview]
Message-ID: <20230208011742.5183-1-zeming@nfschina.com> (raw)
wakeup_bdi does not need to be initialized. It is used after being
assigned.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
fs/fs-writeback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 6fba5a52127b..2d3191d9c736 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -2486,7 +2486,7 @@ void __mark_inode_dirty(struct inode *inode, int flags)
*/
if (!was_dirty) {
struct list_head *dirty_list;
- bool wakeup_bdi = false;
+ bool wakeup_bdi;
inode->dirtied_when = jiffies;
if (dirtytime)
--
2.18.2
next reply other threads:[~2023-02-06 8:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 1:17 Li zeming [this message]
2023-02-17 14:41 ` [PATCH] fs-writeback: remove unnecessary ‘false’ values from wakeup_bdi Jan Kara
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230208011742.5183-1-zeming@nfschina.com \
--to=zeming@nfschina.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).