From: Christoph Hellwig Date: Tue, 8 Jul 2025 06:29:57 +0000 (+0200) Subject: NFS: move the delegation_watermark module parameter X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7df15afc6ea43317c0e5fa4ebdaa6b418f119729;p=users%2Fhch%2Fmisc.git NFS: move the delegation_watermark module parameter Keep the module_param_named next to the variable declaration instead of somewhere unrelated, following the best practice in the rest of the kernel. Signed-off-by: Christoph Hellwig --- diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 9c59b5b0c48b..cbbad20cb691 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -29,6 +29,7 @@ static atomic_long_t nfs_active_delegations; static unsigned nfs_delegation_watermark = NFS_DEFAULT_DELEGATION_WATERMARK; +module_param_named(delegation_watermark, nfs_delegation_watermark, uint, 0644); static void __nfs_free_delegation(struct nfs_delegation *delegation) { @@ -1569,5 +1570,3 @@ out: rcu_read_unlock(); return ret; } - -module_param_named(delegation_watermark, nfs_delegation_watermark, uint, 0644);