xfs: active inodes stat is broken
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Dec 2014 22:42:40 +0000 (09:42 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Dec 2014 22:42:40 +0000 (09:42 +1100)
commitcdc9cec7c0ff521edf8c0e9c9432bf8fdccfc702
treeacd304dac9fdf77f3bdcfaf3bb903a2f0689d4e7
parent4db431f57be2d32f35f46023b0c0d9f8b6e06e26
xfs: active inodes stat is broken

vn_active only ever gets decremented, so it has a very large
negative number.  Make it track the inode count we currently have
allocated properly so we can easily track the size of the inode
cache via tools like PCP.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_icache.c
fs/xfs/xfs_super.c