summaryrefslogtreecommitdiff
path: root/include/linux/lockref.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 07:25:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 07:25:34 +0100
commite749820252c73a17da97cc18b68fec7b6299cfd3 (patch)
tree8efb3d0a83d7253ce60f4f2cab288b284d548661 /include/linux/lockref.h
parenteb07e3a946796b682b12897e080d856bc6d63c3d (diff)
parent0ad2507d5d93f39619fc42372c347d6006b64319 (diff)
Merge 6.14-rc3 into tty-next
We need the tty changes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/lockref.h')
-rw-r--r--include/linux/lockref.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/lockref.h b/include/linux/lockref.h
index c39f119659ba..676721ee878d 100644
--- a/include/linux/lockref.h
+++ b/include/linux/lockref.h
@@ -37,12 +37,13 @@ struct lockref {
/**
* lockref_init - Initialize a lockref
* @lockref: pointer to lockref structure
- * @count: initial count
+ *
+ * Initializes @lockref->count to 1.
*/
-static inline void lockref_init(struct lockref *lockref, unsigned int count)
+static inline void lockref_init(struct lockref *lockref)
{
spin_lock_init(&lockref->lock);
- lockref->count = count;
+ lockref->count = 1;
}
void lockref_get(struct lockref *lockref);