mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
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:
committed by
Christian Brauner
parent
4b193fa75e
commit
d60f2280a1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user