From: Eric Sandeen Date: Thu, 5 Feb 2015 22:53:02 +0000 (+1100) Subject: xfs: report proper f_files in statfs if we overshoot imaxpct X-Git-Tag: fixes-v4.0-rc1~157^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01f9882eac84b85421a469cb65ee9bb555a5985f;p=pandora-kernel.git xfs: report proper f_files in statfs if we overshoot imaxpct Normally, a statfs syscall reports m_maxicount as f_files (total file nodes in file system) because it is supposed to be the upper limit for dynamically-allocated inodes. It's possible, however, to overshoot imaxpct / m_maxicount. If this happens, we should report the actual number of allocated inodes, which is contained in sb_icount. Add one more adjustment to the statfs code to make this happen. Reported-by: Alexander Tsvetkov Signed-off-by: Eric Sandeen Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed