Skip to content

Commit aee077d

Browse files
Christoph HellwigTrond Myklebust
authored andcommitted
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 <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>
1 parent 7375bba commit aee077d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/nfs/delegation.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
static atomic_long_t nfs_active_delegations;
3131
static unsigned nfs_delegation_watermark = NFS_DEFAULT_DELEGATION_WATERMARK;
32+
module_param_named(delegation_watermark, nfs_delegation_watermark, uint, 0644);
3233

3334
static void __nfs_free_delegation(struct nfs_delegation *delegation)
3435
{
@@ -1573,5 +1574,3 @@ bool nfs4_delegation_flush_on_close(const struct inode *inode)
15731574
rcu_read_unlock();
15741575
return ret;
15751576
}
1576-
1577-
module_param_named(delegation_watermark, nfs_delegation_watermark, uint, 0644);

0 commit comments

Comments
 (0)