summaryrefslogtreecommitdiffstats
path: root/lib/random32.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-06-18 20:14:22 +0200
committerTejun Heo <tj@kernel.org>2013-06-18 20:17:32 +0200
commit00356bd5f0f5e04183fb15805eb29e97c2fc20ac (patch)
tree3f69886071f6ca9062723325f319b205a68fa89e /lib/random32.c
parentcgroup: convert cgroup_cft_commit() to use cgroup_for_each_descendant_pre() (diff)
downloadlinux-00356bd5f0f5e04183fb15805eb29e97c2fc20ac.tar.xz
linux-00356bd5f0f5e04183fb15805eb29e97c2fc20ac.zip
cgroup: clean up cgroup_serial_nr_cursor
cgroup_serial_nr_cursor was created atomic64_t because I thought it was never gonna used for anything other than assigning unique numbers to cgroups and didn't want to worry about synchronization; however, now we're using it as an event-stamp to distinguish cgroups created before and after certain point which assumes that it's protected by cgroup_mutex. Let's make it clear by making it a u64. Also, rename it to cgroup_serial_nr_next and make it point to the next nr to allocate so that where it's pointing to is clear and more conventional. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'lib/random32.c')
0 files changed, 0 insertions, 0 deletions