OSDN Git Service

cgroup/misc: Store atomic64_t reads to u64
authorHaitao Huang <haitao.huang@linux.intel.com>
Fri, 21 Jul 2023 12:02:31 +0000 (05:02 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 21 Jul 2023 18:10:06 +0000 (08:10 -1000)
commit714e08cc3ec564dc1717000f5a4c1f40ca8c8878
tree38b6d65c545aeba8022187fe40e6839f2fddfadb
parent32bf85c60ca3584a7ba3bef19da2779b73b2e7d6
cgroup/misc: Store atomic64_t reads to u64

Change 'new_usage' type to u64 so it can be compared with unsigned 'max'
and 'capacity' properly even if the value crosses the signed boundary.

Signed-off-by: Haitao Huang <haitao.huang@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/misc.c