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>
This commit is contained in:
Christoph Hellwig
2025-01-15 10:46:38 +01:00
committed by Christian Brauner
parent 4b193fa75e
commit d60f2280a1

View File

@@ -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)
{