Skip to content

Commit

Permalink
bcache: fix typo in code comments of closure_return_with_destructor()
Browse files Browse the repository at this point in the history
The code comments of closure_return_with_destructor() in closure.h makrs
function name as closure_return(). This patch fixes this type with the
correct name - closure_return_with_destructor.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Coly Li authored and Jens Axboe committed Oct 8, 2018
1 parent dd0c917 commit 4516da4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/bcache/closure.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ do { \
} while (0)

/**
* closure_return - finish execution of a closure, with destructor
* closure_return_with_destructor - finish execution of a closure,
* with destructor
*
* Works like closure_return(), except @destructor will be called when all
* outstanding refs on @cl have been dropped; @destructor may be used to safely
Expand Down

0 comments on commit 4516da4

Please sign in to comment.