From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9C2FA7E0E4 for ; Sun, 12 Jul 2026 20:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783889157; cv=none; b=mWqXjY9mLpj/+OW+ZBbQ2nxx0kD6jt3FwvN9V3ZFJ0Fc/dDqtmFViyTnPFF8ynFOGomquJdoF3+C8UClOhJ9x9OHCH2Gc6V8/zKd4PnViPmzyCLfo5uoOfWNVZsiWicEmK316g6EG7/f88/nij4yX89AESp/jjzxSmneYQj4luE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783889157; c=relaxed/simple; bh=cdgv6J5jif0F/zEmXQfM3hf1zFVhvlyMYry+d/C07jY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FUT+p/G9rD/zuAGtkkiizzcyJ912GqZu6Zp0ASDBll2O58U4aelMXv/y48UM3rZX5oq8RtmbX/6JCCVdW2cVIyFet1A3BQ8x8FWHWucOOsa53kHncmdaRpOCe95eZm0zxRbi4sFte9OVcD4QRDXCfIycEEjdOh0BrdvHdbcy3lA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SSKNst76; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SSKNst76" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A1C1F000E9; Sun, 12 Jul 2026 20:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783889156; bh=J1f9zMYiBy1EfKv+pRDPR/b6CLXaHOMxaWDOTqJUtq4=; h=From:To:Cc:Subject:Date; b=SSKNst76yNno1tr6Pd8MM8RQRqMdTDrMGdpR6SWzlFeov9wFpegSlAC0dFfS3/bMW uLXenBSoLmoK381/c8vEBnPABqko3ouktlJE7DdZBwFUmHmHT55t4uIgFjcpwlIH2c QT2qzSuXLDRnh4+ixHcnNqJq+FLLbE7QVbivCSQdDbYsyhlK5+nNNJc/FNKgB9WNev vsrUOjGPKdQRvv6Mvlp2xTvyTn0crrhR7riupSsamQjDLvroDOyMZhW8vM5MHHXeWl hP6wuZXvFiaCTZK6eX6AWUDHBsQHFmfq4oUmYjaYmWzPd/POoR24LFa8nNQGE4BF0e mnoSo+6OocYng== From: Chuck Lever To: NeilBrown , Jeff Layton , Olga Kornievskaia , Dai Ngo , Tom Talpey Cc: Subject: [PATCH 0/9] Start reorganizing fs/nfsd/nfsd.h Date: Sun, 12 Jul 2026 16:45:45 -0400 Message-ID: <20260712204554.125308-1-cel@kernel.org> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit fs/nfsd/nfsd.h has become a kitchen sink of unrelated declarations and definitions, including a broad swathe of headers and other detritus in NFSD source files. This organization introduces brittleness that makes it difficult to execute changes that cut across layers and internal modules that might otherwise be cleanly siloed. It also pulls in unused items into each TU, making compilation of nfsd.ko needlessly slower and more computationally- expensive. This series begins sorting through this pile to relocate items that are obviously better placed in NFS version- or task-specific headers. Chuck Lever (9): NFSD: Make "stats.h" self-contained NFSD: Explicitly include "stats.h" NFSD: include "netns.h" NFSD: Remove '#include "nfsd.h"' from fs/nfsd/cache.h NFSD: Move the export.h include from nfsd.h to auth.c NFSD: Move struct readdir_cd NFSD: Relocate nfsd_user_namespace() NFSD: Relocate nfsd4_set_netaddr() NFSD: Relocate NFSv4 "supported attributes" to new header fs/nfsd/attr4.h | 162 +++++++++++++++++++++++++++++++++++ fs/nfsd/auth.c | 19 +++++ fs/nfsd/auth.h | 6 ++ fs/nfsd/cache.h | 3 +- fs/nfsd/nfs4idmap.c | 1 + fs/nfsd/nfs4proc.c | 32 +++++++ fs/nfsd/nfs4state.c | 1 + fs/nfsd/nfs4xdr.c | 2 + fs/nfsd/nfscache.c | 2 + fs/nfsd/nfsctl.c | 2 + fs/nfsd/nfsd.h | 202 +------------------------------------------- fs/nfsd/nfsfh.c | 2 + fs/nfsd/nfsxdr.c | 2 + fs/nfsd/state.h | 3 + fs/nfsd/stats.c | 2 + fs/nfsd/stats.h | 3 + fs/nfsd/trace.h | 1 + fs/nfsd/vfs.c | 2 + fs/nfsd/vfs.h | 5 +- fs/nfsd/xdr.h | 1 + fs/nfsd/xdr3.h | 1 + fs/nfsd/xdr4.h | 2 +- 22 files changed, 253 insertions(+), 203 deletions(-) create mode 100644 fs/nfsd/attr4.h -- 2.54.0