From: George Wang Date: Thu, 28 May 2015 21:39:34 +0000 (+1000) Subject: xfs: use percpu_counter_read_positive for mp->m_icount X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~37^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74f9ce1cf2830b94e189f4e99678dbf19aa3bc90;p=pandora-kernel.git 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 Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed