From nobody Thu Apr 2 17:22:45 2026 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F315034D4E9 for ; Wed, 11 Feb 2026 07:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770793551; cv=none; b=IR6Ww1RE1+qb424Wdn+Iiap1hFk/5oZF4L2deGrzwHphZeEozw/4uazL4HqGdNEA3e29vRbO5lqt6ySNSBmFXjstWzG5nZfdY8JMPl68/p7rj6zH/H0r1VHNVt/8mMCN0J7ICw3kXEQZgTakNDAjsjG6nC/2tSv991C0dvPUxO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770793551; c=relaxed/simple; bh=HA3V9wjv2k47ahT8HxVZRWsPsA1moBTdIeFNk9xDkW4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=NYkR1vJZ44xNmecoZraYnG6iKplk8ch0WjFmUAZlI0X+Ws5adUK+yvamu8CkaY4Rqwk52MevTWlwj/miwBzB2E2baMxwWCNYrUjbhRxRptu4J8NL9cyvLejF14N31S2VNOFPtqmzEnjftHpIkcDgnBu/WGOTdnQAeFo7E74+nW8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=WWUr6nZc; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="WWUr6nZc" Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20260211070548epoutp0323e60c8ff196949f6c1337bbff90078f~TH1mXlHe82980829808epoutp033 for ; Wed, 11 Feb 2026 07:05:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20260211070548epoutp0323e60c8ff196949f6c1337bbff90078f~TH1mXlHe82980829808epoutp033 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1770793548; bh=zszdhhsrv+up7ZflU5pHLQgNi3Fdy52nk5y4MQowDYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WWUr6nZcjgHEPbuOWxqLj6c5sQ+lkAaT3ncuY1G/MbqO/p3AMo70C+4eq5S56ReMj ECOVKuaONKdh16KXE//3K0JTSjleo8r614eFQ/c/+euucns5DCg9j7GcyQeNjr3JDe +/+ROg7B5TVn4MzxYmzW2L2YyVxzE3bs/H+GnQhg= Received: from epsnrtp03.localdomain (unknown [182.195.42.155]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPS id 20260211070547epcas5p1025d920a110b5eea592d51eb0e1aec0c~TH1l5Q-u02670926709epcas5p1c; Wed, 11 Feb 2026 07:05:47 +0000 (GMT) Received: from epcas5p1.samsung.com (unknown [182.195.38.91]) by epsnrtp03.localdomain (Postfix) with ESMTP id 4f9qG26XHvz3hhTC; Wed, 11 Feb 2026 07:05:46 +0000 (GMT) Received: from epsmtip2.samsung.com (unknown [182.195.34.31]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20260211070546epcas5p486d5ecfe6754e6237fe3a428705db456~TH1kyHT_a2610826108epcas5p4S; Wed, 11 Feb 2026 07:05:46 +0000 (GMT) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20260211070543epsmtip238fdf67c48a700330e71852ca4040edb~TH1iDhZo40199301993epsmtip2i; Wed, 11 Feb 2026 07:05:43 +0000 (GMT) From: Kundan Kumar To: jaegeuk@kernel.org, chao@kernel.org, agruenba@redhat.com, trondmy@kernel.org, anna@kernel.org, hch@lst.de, brauner@kernel.org, jack@suse.cz, viro@zeniv.linux.org.uk, djwong@kernel.org, pankaj.raghav@linux.dev Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, gfs2@lists.linux.dev, linux-nfs@vger.kernel.org, gost.dev@samsung.com, anuj20.g@samsung.com, vishak.g@samsung.com, joshi.k@samsung.com, mcgrof@kernel.org, Kundan Kumar Subject: [PATCH 4/4] nfs: stop using writeback internals for WB_WRITEBACK accounting Date: Wed, 11 Feb 2026 12:30:57 +0530 Message-Id: <20260211070057.22001-5-kundan.kumar@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260211070057.22001-1-kundan.kumar@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CMS-MailID: 20260211070546epcas5p486d5ecfe6754e6237fe3a428705db456 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P cpgsPolicy: CPGSC10-542,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20260211070546epcas5p486d5ecfe6754e6237fe3a428705db456 References: <20260211070057.22001-1-kundan.kumar@samsung.com> Convert NFS WB_WRITEBACK accounting to bdi-scoped writeback helper, eliminating direct access to writeback. Suggested-by: Christoph Hellwig Signed-off-by: Kundan Kumar Signed-off-by: Anuj Gupta --- fs/nfs/internal.h | 2 +- fs/nfs/write.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 2e596244799f..a738c357b153 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -866,7 +866,7 @@ static inline void nfs_folio_mark_unstable(struct folio= *folio, * writeback is happening on the server now. */ node_stat_mod_folio(folio, NR_WRITEBACK, nr); - wb_stat_mod(&inode_to_bdi(inode)->wb, WB_WRITEBACK, nr); + bdi_wb_stat_mod(inode_to_bdi(inode), WB_WRITEBACK, nr); __mark_inode_dirty(inode, I_DIRTY_DATASYNC); } } diff --git a/fs/nfs/write.c b/fs/nfs/write.c index bf412455e8ed..c56b15b5380f 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -872,8 +872,8 @@ static void nfs_folio_clear_commit(struct folio *folio) long nr =3D folio_nr_pages(folio); =20 node_stat_mod_folio(folio, NR_WRITEBACK, -nr); - wb_stat_mod(&inode_to_bdi(folio->mapping->host)->wb, - WB_WRITEBACK, -nr); + bdi_wb_stat_mod(inode_to_bdi(folio->mapping->host), + WB_WRITEBACK, -nr); } } =20 --=20 2.25.1