projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b193fa
)
lockref: improve the lockref_get_not_zero description
author
Christoph Hellwig
<hch@lst.de>
Wed, 15 Jan 2025 09:46:38 +0000
(10:46 +0100)
committer
Christian Brauner
<brauner@kernel.org>
Thu, 16 Jan 2025 10:48:11 +0000
(11:48 +0100)
lockref_put_return returns exactly -1 and not "an error" when the lockref
is dead or locked.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link:
https://lore.kernel.org/r/20250115094702.504610-3-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
lib/lockref.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/lockref.c
b/lib/lockref.c
index a68192c979b3200763d5e3bb145fed3a96ee3c3f..b1b042a9a6c8e2b625ec2905eaa716999e2154e9 100644
(file)
--- a/
lib/lockref.c
+++ b/
lib/lockref.c
@@
-86,7
+86,7
@@
EXPORT_SYMBOL(lockref_get_not_zero);
* @lockref: pointer to lockref structure
*
* Decrement the reference count and return the new value.
- * If the lockref was dead or locked, return
an error
.
+ * If the lockref was dead or locked, return
-1
.
*/
int lockref_put_return(struct lockref *lockref)
{