]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: per-filesystem stats counter implementation
authorBill O'Donnell <billodo@redhat.com>
Mon, 15 Feb 2016 01:24:36 +0000 (12:24 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 15 Feb 2016 01:24:36 +0000 (12:24 +1100)
commit79896434eb9301d1587a57d57c24e674ffc58e2f
tree9dfe942167ed0fcf3a6c8d23871d62eecebde76a
parentf44fbde0a37e44f981226871f3533e41c6030319
xfs: per-filesystem stats counter implementation

Source kernel commit ff6d6af2351caea7db681f4539d0d893e400557a

This patch modifies the stats counting macros and the callers
to those macros to properly increment, decrement, and add-to
the xfs stats counts. The counts for global and per-fs stats
are correctly advanced, and cleared by writing a "1" to the
corresponding clear file.

global counts: /sys/fs/xfs/stats/stats
per-fs counts: /sys/fs/xfs/sda*/stats/stats

global clear:  /sys/fs/xfs/stats/stats_clear
per-fs clear:  /sys/fs/xfs/sda*/stats/stats_clear

[dchinner: cleaned up macro variables, removed CONFIG_FS_PROC around
 stats structures and macros. ]

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/libxfs_priv.h
libxfs/xfs_alloc.c
libxfs/xfs_attr.c
libxfs/xfs_bmap.c
libxfs/xfs_btree.h
libxfs/xfs_dir2.c