]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
NFS: move the delegation_watermark module parameter
authorChristoph Hellwig <hch@lst.de>
Fri, 18 Jul 2025 08:14:48 +0000 (10:14 +0200)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Jul 2025 12:10:41 +0000 (08:10 -0400)
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 <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20250718081509.2607553-4-hch@lst.de
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c

index 568d2e6d65fab5d28bb28bfc4dbf5bfc8c02352c..5f85966d7709c8b079d9e4f37dfe7023c63ed8c9 100644 (file)
@@ -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)
 {
@@ -1573,5 +1574,3 @@ out:
        rcu_read_unlock();
        return ret;
 }
-
-module_param_named(delegation_watermark, nfs_delegation_watermark, uint, 0644);