ocfs2: track local alloc state via debugfs
authorMark Fasheh <mfasheh@suse.com>
Wed, 30 Jul 2008 01:29:18 +0000 (18:29 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 20:57:58 +0000 (13:57 -0700)
commit9a8ff578fb430a8816dfbc73c77e5e09c6d9c343
treebe97f570b59a4af8fbf0c4c054619193155aaaa6
parent9c7af40b210e87f8fddd97b0badc0a352862234a
ocfs2: track local alloc state via debugfs

A per-mount debugfs file, "local_alloc" is created which when read will
expose live state of the nodes local alloc file. Performance impact is
minimal, only a bit of memory overhead per mount point. Still, the code is
hidden behind CONFIG_OCFS2_FS_STATS. This feature will help us debug
local alloc performance problems on a live system.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/localalloc.c
fs/ocfs2/ocfs2.h