Skip to content

Commit d60f228

Browse files
Christoph Hellwigbrauner
authored andcommitted
lockref: improve the lockref_get_not_zero description
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>
1 parent 4b193fa commit d60f228

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/lockref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ EXPORT_SYMBOL(lockref_get_not_zero);
8686
* @lockref: pointer to lockref structure
8787
*
8888
* Decrement the reference count and return the new value.
89-
* If the lockref was dead or locked, return an error.
89+
* If the lockref was dead or locked, return -1.
9090
*/
9191
int lockref_put_return(struct lockref *lockref)
9292
{

0 commit comments

Comments
 (0)