diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2025-01-30 14:56:23 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-02-07 10:27:25 +0100 |
| commit | bb504b4d64266fa0d7460c218c85afed371db03a (patch) | |
| tree | 5e25bfc902fc92efa01e566105e1c9aaa3ffc7cb /fs/dcache.c | |
| parent | 34ad6fa2add2b38f2a89d28518de0142bff8fb43 (diff) | |
| download | tip-bb504b4d64266fa0d7460c218c85afed371db03a.tar.gz | |
lockref: remove count argument of lockref_init
All users of lockref_init() now initialize the count to 1, so hardcode
that and remove the count argument.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Link: https://lore.kernel.org/r/20250130135624.1899988-4-agruenba@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/dcache.c')
| -rw-r--r-- | fs/dcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 9cc0d47da321c5..7dee242b4195a7 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -1700,7 +1700,7 @@ static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) smp_store_release(&dentry->d_name.name, dname); /* ^^^ */ dentry->d_flags = 0; - lockref_init(&dentry->d_lockref, 1); + lockref_init(&dentry->d_lockref); seqcount_spinlock_init(&dentry->d_seq, &dentry->d_lock); dentry->d_inode = NULL; dentry->d_parent = dentry; |
