nilfs2: add /sys/fs/nilfs2/<device>/segments group
authorVyacheslav Dubeyko <Vyacheslav.Dubeyko@hgst.com>
Fri, 8 Aug 2014 21:20:46 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:20 +0000 (15:57 -0700)
commitef43d5cd84b7d2ea09846de34e14be7d74be3e6f
tree67163715eb9012e931f9a7eefafe59a71ad20401
parentabc968dbf291955ac750ecf59e3baf2b529a8257
nilfs2: add /sys/fs/nilfs2/<device>/segments group

This patch adds creation of /sys/fs/nilfs2/<device>/segments
group.

The segments group contains attributes that describe
details about volume's segments:
(1) segments_number - show number of segments on volume.
(2) blocks_per_segment - show number of blocks in segment.
(3) clean_segments - show count of clean segments.
(4) dirty_segments - show count of dirty segments.

Signed-off-by: Vyacheslav Dubeyko <Vyacheslav.Dubeyko@hgst.com>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Michael L. Semon <mlsemon35@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/ABI/testing/sysfs-fs-nilfs2
fs/nilfs2/sysfs.c
fs/nilfs2/sysfs.h