Few sentences calls `kref_sub()` function as `kref_put()`. This commit fixes the wrong citations. Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx> --- together/refcnt.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/together/refcnt.tex b/together/refcnt.tex index a7e6c7bd0332..22d0a8d1d08e 100644 --- a/together/refcnt.tex +++ b/together/refcnt.tex @@ -304,11 +304,11 @@ optimizations on all platforms, but the fact that the \co{kref} primitives are in a separate module and that the Linux kernel build process does no cross-module optimizations has the same effect. -The \co{kref_put()} function on lines~16-28 atomically decrements the +The \co{kref_sub()} function on lines~16-28 atomically decrements the counter, and if the result is zero, line~24 invokes the specified \co{release()} function and line~25 returns, informing the caller that \co{release()} was invoked. -Otherwise, \co{kref_put()} returns zero, informing the caller that +Otherwise, \co{kref_sub()} returns zero, informing the caller that \co{release()} was not called. \QuickQuiz{} -- 2.10.0 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html