]> git.ipfire.org Git - thirdparty/linux.git/commit
lockref: add a lockref_init helper
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Jan 2025 09:46:41 +0000 (10:46 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 16 Jan 2025 10:48:11 +0000 (11:48 +0100)
commit63440d1c6dd1fc782db905319dbfb4db354e54b9
tree1ac1c5d39c3cf67f3eaa7ef70421c166f744dd2f
parent25d8060418b4e83e109b20f3b3931301e254b8f4
lockref: add a lockref_init helper

Add a helper to initialize the lockdep, that is initialize the spinlock
and set a value.  Having to open code them isn't a big deal, but having
an initializer feels right for a proper primitive.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250115094702.504610-6-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/lockref.h