From: Andi Kleen Subject: Re: [PATCH 1/4] Cache xattr security drop check for write v2 Date: Sat, 18 Jun 2011 20:04:50 +0200 Message-ID: <20110618180450.GH16236@one.firstfloor.org> References: <1306596354-18453-1-git-send-email-andi@firstfloor.org> <1306849896.2816.22.camel@menhir> <20110531180643.GB9261@alboin.amr.corp.intel.com> <1306867346.2816.49.camel@menhir> <20110531200750.GO11521@ZenIV.linux.org.uk> <4DFC4C7E.1030006@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Al Viro , Steven Whitehouse , Andi Kleen , Andi Kleen , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, chris.mason@oracle.com, josef@redhat.com, agruen@linbit.com, "Serge E. Hallyn" To: Marco Stornelli Return-path: Received: from one.firstfloor.org ([213.235.205.2]:35992 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332Ab1FRSEw (ORCPT ); Sat, 18 Jun 2011 14:04:52 -0400 Content-Disposition: inline In-Reply-To: <4DFC4C7E.1030006@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > several fs now uses MS_NOSEC (because this flag is set in mount_bdev()) > but I don't see any user of the function inode_has_no_xattr() in the > latest version. If I well understand, a fs that wants to manage this > feature has to set MS_NOSEC and calls when needed this function, isn't > it? So at this point, why there aren't any user of this function? Calling the function is just an optimization to avoid the lookup for the first write. But most of the benefit you already get when just the flag is set. I haven't resent the patches using it to the fs maintainers yet and none of them took it the first round. -Andi