]> www.infradead.org Git - users/hch/misc.git/commitdiff
NFS: move the delegation_watermark module parameter
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jul 2025 06:29:57 +0000 (08:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Jul 2025 08:42:16 +0000 (10:42 +0200)
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>
fs/nfs/delegation.c

index 9c59b5b0c48bdb13118c876f07032bc36643c6fe..cbbad20cb69174521b90c0d3500383c83ca1d250 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)
 {
@@ -1569,5 +1570,3 @@ out:
        rcu_read_unlock();
        return ret;
 }
-
-module_param_named(delegation_watermark, nfs_delegation_watermark, uint, 0644);