From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id EA0986B5768 for ; Fri, 31 Aug 2018 10:31:11 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id t23-v6so6910712pfe.20 for ; Fri, 31 Aug 2018 07:31:11 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id f40-v6si10306766plb.504.2018.08.31.07.31.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 07:31:10 -0700 (PDT) Date: Fri, 31 Aug 2018 07:31:00 -0700 From: Matthew Wilcox Subject: Re: [PATCH 1/2] fs/dcache: Track & report number of negative dentries Message-ID: <20180831143100.GA6379@bombadil.infradead.org> References: <1535476780-5773-1-git-send-email-longman@redhat.com> <1535476780-5773-2-git-send-email-longman@redhat.com> <20180829001153.GD1572@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180829001153.GD1572@dastard> Sender: owner-linux-mm@kvack.org List-ID: To: Dave Chinner Cc: Waiman Long , Alexander Viro , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, "Luis R. Rodriguez" , Kees Cook , Linus Torvalds , Jan Kara , "Paul E. McKenney" , Andrew Morton , Ingo Molnar , Miklos Szeredi , Larry Woodman , James Bottomley , "Wangkai (Kevin C)" , Michal Hocko On Wed, Aug 29, 2018 at 10:11:53AM +1000, Dave Chinner wrote: > > +++ b/Documentation/sysctl/fs.txt > > @@ -63,19 +63,26 @@ struct { > > int nr_unused; > > int age_limit; /* age in seconds */ > > int want_pages; /* pages requested by system */ > > - int dummy[2]; > > + int nr_negative; /* # of unused negative dentries */ > > + int dummy; > > } dentry_stat = {0, 0, 45, 0,}; > > That's not a backwards compatible ABI change. Those dummy fields > used to represent some metric we no longer calculate, and there are > probably still monitoring apps out there that think they still have > the old meaning. i.e. they are still visible to userspace: I believe you are incorrect. dentry_stat was introduced in 2.1.60 with this hunk: +struct { + int nr_dentry; + int nr_unused; + int age_limit; /* age in seconds */ + int want_pages; /* pages requested by system */ + int dummy[2]; +} dentry_stat = {0, 0, 45, 0,}; + Looking through the rest of the dentry_stat changes in the 2.1.60 release, it's not replacing anything, it's adding new information.