aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu_counter.h
diff options
context:
space:
mode:
authorGeorge Wang <xuw2015@gmail.com>2015-05-29 07:39:34 +1000
committerDave Chinner <david@fromorbit.com>2015-05-29 07:39:34 +1000
commit74f9ce1cf2830b94e189f4e99678dbf19aa3bc90 (patch)
treefda31de04c0e47f9ddfe5b9ef4d0a17106233491 /include/linux/percpu_counter.h
parentLinux 4.1-rc2 (diff)
downloadlinux-dev-74f9ce1cf2830b94e189f4e99678dbf19aa3bc90.tar.xz
linux-dev-74f9ce1cf2830b94e189f4e99678dbf19aa3bc90.zip
xfs: use percpu_counter_read_positive for mp->m_icount
Function percpu_counter_read just return the current counter, which can be negative. This will cause the checking of "allocated inode counts <= m_maxicount" false positive. Use percpu_counter_read_positive can solve this problem, and be consistent with the purpose to introduce percpu mechanism to xfs. Signed-off-by: George Wang <xuw2015@gmail.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'include/linux/percpu_counter.h')
0 files changed, 0 insertions, 0 deletions