Skip to content
Commit 15617dff authored by Ira Weiny's avatar Ira Weiny Committed by Dennis Zhou
Browse files

percpu_ref: Fix comment regarding percpu_ref_init flags



The comment for percpu_ref_init() implies that using
PERCPU_REF_ALLOW_REINIT will cause the refcount to start at 0.  But
this is not true.  PERCPU_REF_ALLOW_REINIT starts the count at 1 as
if the flags were zero.  Add this fact to the kernel doc comment.

Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
[Dennis: reworded]
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
parent 98d54f81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment