summaryrefslogtreecommitdiff
path: root/include/linux/bitmap.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2020-02-22 02:16:07 +0300
committerDennis Zhou <dennis@kernel.org>2020-03-06 00:10:26 +0300
commit15617dffa387d2d80eefb9935c3a3985c4021090 (patch)
tree85b3c85916949f9b851d50936dc473a3491bf448 /include/linux/bitmap.h
parent98d54f81e36ba3bf92172791eba5ca5bd813989b (diff)
downloadlinux-15617dffa387d2d80eefb9935c3a3985c4021090.tar.xz
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: Ira Weiny <ira.weiny@intel.com> [Dennis: reworded] Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'include/linux/bitmap.h')
0 files changed, 0 insertions, 0 deletions