aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorEric Sandeen <[email protected]>2015-02-05 22:53:02 +0000
committerDave Chinner <[email protected]>2015-02-05 22:53:02 +0000
commit01f9882eac84b85421a469cb65ee9bb555a5985f (patch)
tree9d2903b03f8923d93db1f6408231254ec5c3514b /lib/string_helpers.c
parentxfs: fix panic_mask documentation (diff)
downloadkernel-01f9882eac84b85421a469cb65ee9bb555a5985f.tar.gz
kernel-01f9882eac84b85421a469cb65ee9bb555a5985f.zip
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 <[email protected]> Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions