From patchwork Tue Mar 5 00:46:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Thelen X-Patchwork-Id: 10838839 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 30BDC14DE for ; Tue, 5 Mar 2019 00:46:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 218A72B8B5 for ; Tue, 5 Mar 2019 00:46:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 154FF2BCE8; Tue, 5 Mar 2019 00:46:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B710A2B8B5 for ; Tue, 5 Mar 2019 00:46:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726590AbfCEAqb (ORCPT ); Mon, 4 Mar 2019 19:46:31 -0500 Received: from mail-pg1-f201.google.com ([209.85.215.201]:43409 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbfCEAqb (ORCPT ); Mon, 4 Mar 2019 19:46:31 -0500 Received: by mail-pg1-f201.google.com with SMTP id t6so6704478pgp.10 for ; Mon, 04 Mar 2019 16:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=QfpMaV94+0wgT+OuqRPo5XEGlcPZK1e4dqOorDrF3ZY=; b=YT8us2NRgFHYgT4mRU4IW96mK04cQbPtnO1IAE/tauoXqLg0jDxK4WQR1RitCpDODe D8fuQMxT3db3pVPvpH+hbXAP15B4iRY7fA98xVdITwfiW/I20fHiFla/hYSfdIK32VO0 zcEiGH9Fq96ZjWzZuyQkQRr4Ny3mAaZ1NN6t5c2yF+grVCZc7Tw1VBjOtTq6+5+ou1CL 752/bsRVT2elbSZXium+72a6MWvq7DVgeGje5UZ60WISsyVGYyQCitw2gebWn5PkwIOg Nmp3zT1nkSvorDnmS8lIRGhFPu7SxJ/GZb5itspuceQJQHmG8aEYcjxDyAwl/Xrq3TTo p5cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=QfpMaV94+0wgT+OuqRPo5XEGlcPZK1e4dqOorDrF3ZY=; b=ClEYvZUY60Q11rn+0/KUFTRBKC4ApuPJg2rXlnqWA0VhsDrw51nd678Bm1juN81m7U Mfm1cfKqXdwmM1Y0Dc8xfdLGf2HaQOq81GfkfaJmux43WAF8scJ1bBNKes0o34vSDX0M 2j+GLTsKpWUtvly27qCzO9gxR8Otk+3aHwrua5bMvH49FH89YFaHoCvGD4CyzMtyDPKc OfM3XRH+UC2ivJTS21rnSSwPmLUFaRGHi53gqbuwVKz1HvrTTqPJo1j83xwHvRqdCx8V uJzlivg28ZSmBEjJhpFy3jDDdNkZfPNeElHDjPQB/9wy2qKMEuvMNq+IX5mlH71TFqaV k2Pg== X-Gm-Message-State: APjAAAWoXfLn8UQ5+rXX4S6z0ZsYmKqeSo8W2npHq8wyygrY3gnbvWmb IMcmaEESyCOVCP4vylmW1OVY8gLcy61S X-Google-Smtp-Source: APXvYqxlyZF9zMvOdEA5eS1pFBL7W2vAqV7/HcaChTdd6/KURqoPkhMPJPP5T4fyPGMYe7KVvr89whKIEkSj X-Received: by 2002:a17:902:2c83:: with SMTP id n3mr1914198plb.105.1551746789992; Mon, 04 Mar 2019 16:46:29 -0800 (PST) Date: Mon, 4 Mar 2019 16:46:17 -0800 Message-Id: <20190305004617.142590-1-gthelen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.352.gf09ad66450-goog Subject: [PATCH] writeback: fix inode cgroup switching comment From: Greg Thelen To: Andrew Morton , Tejun Heo Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Thelen Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 682aa8e1a6a1 ("writeback: implement unlocked_inode_to_wb transaction and use it for stat updates") refers to inode_switch_wb_work_fn() which never got merged. Switch the comments to inode_switch_wbs_work_fn(). Fixes: 682aa8e1a6a1 ("writeback: implement unlocked_inode_to_wb transaction and use it for stat updates") Signed-off-by: Greg Thelen Acked-by: Tejun Heo --- include/linux/backing-dev.h | 2 +- include/linux/fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index c28a47cbe355..f9b029180241 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -365,7 +365,7 @@ unlocked_inode_to_wb_begin(struct inode *inode, struct wb_lock_cookie *cookie) rcu_read_lock(); /* - * Paired with store_release in inode_switch_wb_work_fn() and + * Paired with store_release in inode_switch_wbs_work_fn() and * ensures that we see the new wb if we see cleared I_WB_SWITCH. */ cookie->locked = smp_load_acquire(&inode->i_state) & I_WB_SWITCH; diff --git a/include/linux/fs.h b/include/linux/fs.h index fd423fec8d83..08f26046233e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2091,7 +2091,7 @@ static inline void init_sync_kiocb(struct kiocb *kiocb, struct file *filp) * I_WB_SWITCH Cgroup bdi_writeback switching in progress. Used to * synchronize competing switching instances and to tell * wb stat updates to grab the i_pages lock. See - * inode_switch_wb_work_fn() for details. + * inode_switch_wbs_work_fn() for details. * * I_OVL_INUSE Used by overlayfs to get exclusive ownership on upper * and work dirs among overlayfs mounts.