diff options
| author | Vyacheslav Dubeyko <[email protected]> | 2013-07-03 15:08:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-03 16:08:01 -0700 |
| commit | c7ef972c440fc9f1eda28b450cd30ad15c4d60cf (patch) | |
| tree | 5f415ed5b082632848cae6e5798a8ac986e0ed38 /tools/perf/scripts/python | |
| parent | e88b815e011bcacb7066f1156ce390f6b0adc9df (diff) | |
nilfs2: implement calculation of free inodes count
Currently, NILFS2 returns 0 as free inodes count (f_ffree) and current
used inodes count as total file nodes in file system (f_files):
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/loop0 2 2 0 100% /mnt/nilfs2
This patch implements real calculation of free inodes count. First of
all, it is calculated total file nodes in file system as
(desc_blocks_count * groups_per_desc_block * entries_per_group). Then, it
is calculated free inodes count as difference the total file nodes and
used inodes count. As a result, we have such output for NILFS2:
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/loop0 4194304 2114701 2079603 51% /mnt/nilfs2
Reported-by: Clemens Eisserer <[email protected]>
Signed-off-by: Vyacheslav Dubeyko <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Tested-by: Vyacheslav Dubeyko <[email protected]>
Cc: Joern Engel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions