From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: It's time to hack on dentry_stat? Date: Wed, 7 May 2008 08:51:16 -0600 Message-ID: <20080507145116.GV19219@parisc-linux.org> References: <91b13c310805070726k7eb1384ex7d557b5dca4b567@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: rae l Return-path: Received: from palinux.external.hp.com ([192.25.206.14]:59098 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755046AbYEGOvd (ORCPT ); Wed, 7 May 2008 10:51:33 -0400 Content-Disposition: inline In-Reply-To: <91b13c310805070726k7eb1384ex7d557b5dca4b567@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, May 07, 2008 at 10:26:58PM +0800, rae l wrote: > I have noticed that struct dentry_stat_t dentry_stat is a struct with > six fields, > but only 2 of them are used, other 4 have never been used since v2.6.11, > > from include/linux/dcache.h: > > struct dentry_stat_t { > int nr_dentry; > int nr_unused; > int age_limit; /* age in seconds */ > int want_pages; /* pages requested by system */ > int dummy[2]; > }; You have to not break: $ cat /proc/sys/fs/dentry-state 122104 115846 45 0 0 0 -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."