Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1698AC636D3 for ; Mon, 6 Feb 2023 08:46:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbjBFIq2 (ORCPT ); Mon, 6 Feb 2023 03:46:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjBFIq0 (ORCPT ); Mon, 6 Feb 2023 03:46:26 -0500 Received: from mail.nfschina.com (unknown [42.101.60.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84C024C3D; Mon, 6 Feb 2023 00:46:24 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 8B4581A00A6C; Mon, 6 Feb 2023 16:46:53 +0800 (CST) X-Virus-Scanned: amavisd-new at nfschina.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x_B4fx6T-QN3; Mon, 6 Feb 2023 16:46:52 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id B29971A00854; Mon, 6 Feb 2023 16:46:52 +0800 (CST) From: Li zeming To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?fs-writeback:=20remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98false=E2=80=99=20values=20from=20wakeup=5Fbdi?= Date: Wed, 8 Feb 2023 09:17:42 +0800 Message-Id: <20230208011742.5183-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wakeup_bdi does not need to be initialized. It is used after being assigned. Signed-off-by: Li zeming --- 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