From: Andi Kleen Subject: Re: [PATCH 2/4] EXT4: Set NOSEC flag early when there are no xattrs Date: Sat, 28 May 2011 07:43:31 -0700 Message-ID: <20110528144331.GA25561@alboin.amr.corp.intel.com> References: <1306536845-24162-1-git-send-email-andi@firstfloor.org> <1306536845-24162-2-git-send-email-andi@firstfloor.org> <4DE0BB71.9000303@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andi Kleen , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, tytso@mit.edu To: Marco Stornelli Return-path: Content-Disposition: inline In-Reply-To: <4DE0BB71.9000303@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sat, May 28, 2011 at 11:08:01AM +0200, Marco Stornelli wrote: > Il 28/05/2011 00:54, Andi Kleen ha scritto: > >From: Andi Kleen > > > >This avoids a xattr lookup on every write. > > > >Cc: tytso@mit.edu > >Signed-off-by: Andi Kleen > > Are ext2/3 affected too? It seems to me that more or less the xattr > management for the extN series is the same, isn't it? Yes, they could be changed the same way. Note however that the file system specific change is only a relatively minor optimization (avoids the first lookup). The important one is the cache which every file system get's automatically without changes. -Andi