diff options
| author | Christoph Hellwig <[email protected]> | 2025-01-15 09:46:38 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-01-16 10:48:11 +0000 |
| commit | d60f2280a1b5b9a4796f9a13f7fdff1d0b99f718 (patch) | |
| tree | 33a0c8233b976098dc08ee67420fd0b3950a5401 /lib/lockref.c | |
| parent | lockref: remove lockref_put_not_zero (diff) | |
| download | kernel-d60f2280a1b5b9a4796f9a13f7fdff1d0b99f718.tar.gz kernel-d60f2280a1b5b9a4796f9a13f7fdff1d0b99f718.zip | |
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]>
Diffstat (limited to 'lib/lockref.c')
| -rw-r--r-- | lib/lockref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lockref.c b/lib/lockref.c index a68192c979b3..b1b042a9a6c8 100644 --- 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) { |
