diff options
author | Christoph Hellwig <hch@lst.de> | 2025-01-15 12:46:38 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-01-16 13:48:11 +0300 |
commit | d60f2280a1b5b9a4796f9a13f7fdff1d0b99f718 (patch) | |
tree | 33a0c8233b976098dc08ee67420fd0b3950a5401 | |
parent | 4b193fa75efffd90c054d1a7f2b5dbe29a461c14 (diff) | |
download | linux-d60f2280a1b5b9a4796f9a13f7fdff1d0b99f718.tar.xz |
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>
-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) { |