Re: [PATCH 2/4] fs/dcache: Report negative dentry number in dentry-state

2017-07-17 Thread Waiman Long
On 07/17/2017 10:09 AM, Matthew Wilcox wrote: > On Mon, Jul 17, 2017 at 09:39:31AM -0400, Waiman Long wrote: >> @@ -63,9 +63,10 @@ struct qstr { >> struct dentry_stat_t { >> long nr_dentry; >> long nr_unused; >> -long age_limit; /* age in seconds */ >> -long want_pages;

Re: [PATCH 2/4] fs/dcache: Report negative dentry number in dentry-state

2017-07-17 Thread Matthew Wilcox
On Mon, Jul 17, 2017 at 09:39:31AM -0400, Waiman Long wrote: > @@ -63,9 +63,10 @@ struct qstr { > struct dentry_stat_t { > long nr_dentry; > long nr_unused; > - long age_limit; /* age in seconds */ > - long want_pages; /* pages requested by system */ > - lo

[PATCH 2/4] fs/dcache: Report negative dentry number in dentry-state

2017-07-17 Thread Waiman Long
The number of negative dentries currently in the system is now reported in the /proc/sys/fs/dentry-state file. Signed-off-by: Waiman Long --- fs/dcache.c| 16 +++- include/linux/dcache.h | 7 --- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/fs/dcac