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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 4b193fa commit d60f228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)