Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 298A1278E5D for ; Wed, 7 Jan 2026 07:27:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767770851; cv=none; b=Oymtok3O7yMPQPlBe7dyjncQxsx3sGbMQ0tc0uiKXgb6IhEPWlqzIYF4T93qEJIkOaMmKEFQS1/3pTcXNLOkxf3YEjpNYrYBdK73/zXY4yROz2zmM/5tEKQhs4wqebvpkApMgU2tFkRQxXgU/rAD9NvZEYoqlus/kl8lcbFflYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767770851; c=relaxed/simple; bh=MT2iBYwLKjIg6hDX9tpEPMMHIU8Ykk2qnvwu0iMVLgs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mQJ6LD/vpArxEExGHuRdbG1z6XS3KJLh6W4xchD95l7W5ILloy2Hpwv6j8vfk8W58zYYZYexmAISYL7b1I8N17LUWF1ThzPpK1OLR7tNQYNyARAjcBvutLEPtThSkdyTXrdrZrZBfYa5TyuK3gyfEqumSKYAhdAaXQCdG+oVGS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=dbp5AgTE; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dbp5AgTE" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=5isRKaWe289S4zVSb4xK2swSwkQ8/XnRp1x/4IqeVYA=; b=dbp5AgTEQUyJUPWdWStBjRf/sL Cq5owrAn+3o7SlGDBpWjSD0zFZ9vZl1BNW0OzpImGyV0F6GPCrZdbn3DqSJM3/ysWY50rjuHAOsoH jQhti6sy11mD0vR9no9LbAbeGTlMKoANgP+7C6IP0QWBzgOZq+2GSjFd5Mzbdf2lZd7xnMIytqVE5 WA8Tr7x6klDseNkOxj+Gy807L7NK7jrh31aHZowR+4lQYKdoJfc3gmOl7HIjXEbbbd8xl0FLWVs4Q h0nSB2ycF+wWVdGkFyagdP16vzvBPhl1mFq5fi0OrDYTg74TUGNpAwPl4iOVBTdbB2lfASFHvcGFD CeC+Wd/w==; Received: from 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdNx2-0000000EHjm-1StN; Wed, 07 Jan 2026 07:27:28 +0000 From: Christoph Hellwig To: Trond Myklebust , Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH 01/24] NFS: remove __nfs_client_for_each_server Date: Wed, 7 Jan 2026 08:26:52 +0100 Message-ID: <20260107072720.1744129-2-hch@lst.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260107072720.1744129-1-hch@lst.de> References: <20260107072720.1744129-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html __nfs_client_for_each_server is only called by nfs_client_for_each_server, so merge the two. Signed-off-by: Christoph Hellwig --- fs/nfs/super.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 57d372db03b9..e74164d9c081 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -212,15 +212,14 @@ void nfs_sb_deactive(struct super_block *sb) } EXPORT_SYMBOL_GPL(nfs_sb_deactive); -static int __nfs_list_for_each_server(struct list_head *head, - int (*fn)(struct nfs_server *, void *), - void *data) +int nfs_client_for_each_server(struct nfs_client *clp, + int (*fn)(struct nfs_server *server, void *data), void *data) { struct nfs_server *server, *last = NULL; int ret = 0; rcu_read_lock(); - list_for_each_entry_rcu(server, head, client_link) { + list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { if (!(server->super && nfs_sb_active(server->super))) continue; rcu_read_unlock(); @@ -239,13 +238,6 @@ static int __nfs_list_for_each_server(struct list_head *head, nfs_sb_deactive(last->super); return ret; } - -int nfs_client_for_each_server(struct nfs_client *clp, - int (*fn)(struct nfs_server *, void *), - void *data) -{ - return __nfs_list_for_each_server(&clp->cl_superblocks, fn, data); -} EXPORT_SYMBOL_GPL(nfs_client_for_each_server); /* -- 2.47.3