Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp234973imm; Tue, 15 May 2018 00:31:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/K5oPQsNGSzGemqsq++n6rAyPrPTkJRLVD5QH9i0eKOTArw4/ZBoGC4talE2lz0JAvu21 X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr2109145pla.52.1526369508114; Tue, 15 May 2018 00:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526369508; cv=none; d=google.com; s=arc-20160816; b=c3NM8gpPp3gi5TwOziKHZU7wfYS1fgsFk9txxB/hUEFeIGJ5Ka8ZTwTmKum1erevmP wGgSQROJGRkEmaoDASYrXeUli79G/AaRvZMc0cD3w0E5Wl6JjR9ioB/Cn3YuTbzMRiOT ZTeCuFv9zp0h0Oel/av5z7XW+GfPKI028NuklRtujnCL5SPOFTpFzG0o23j+hiIvJtTz Zbl3zwrlar/Zy9qoO8P2ByTPRAUnQUhiXxmsEQ0Arw47Xj6gSqR+8yHFjNXePKjCBdck g8G1NrT4FZVkolLxa8JoPfwwsIk3374p95+X6bzaSJ6x4HJccHdYN7Z8OQmo9XouQvnL EY7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=LiWfHr+zmOblasvqFA47SFYf2/io+1cF1praDydIiE8=; b=DiA1Y/zzhn6EKTfUfg+PlCtvz1TYRy8OpTRxIrv9ZUcrOpzY5nxF+2dif6s+mm+Nga 6nO7KwZpxRGFLjA+lb/Gy49EdFROUmUcBqiUbarrV1X4Ir3mPknvaAqx3Ub5CJAXoNgY KfaomDrzorqXKuMCM5UNFdxUZdqjBOZ61aymbJ3K65P2wVD8iYPvVeloN1EnLGeflGjH L43lHoOthODk+nnCQcAY9zvxhA8lr/iHTM0CECRdc3ntJcGr8rEvbDPJ/dAHAcz4sG3m G9zNb0wZqKZRZOZjwHzyNfNdrkyKkW0UUidKe9muCpuL6x1W1ibspJE5MvffkGd0vyIb u5Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MxSQafwU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17-v6si10456784plo.355.2018.05.15.00.31.33; Tue, 15 May 2018 00:31:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MxSQafwU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752404AbeEOHa3 (ORCPT + 99 others); Tue, 15 May 2018 03:30:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:56854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbeEOHa0 (ORCPT ); Tue, 15 May 2018 03:30:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 821E221726; Tue, 15 May 2018 07:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526369426; bh=7C40xeVtLG1YeE65EjvpCLF9VvlGV7vIz4SHvd2yBk8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MxSQafwUdkAK7sHg3oxNEQpn90OfXHJ3vgE8RYWjIp9I4tQnfJBtpXi1jpBT/881m TywWMzY8/eZwEK+hkQWUBVhded7f3dqQVF/1eQjeq7oGeeGPZoTkSPzgfVphzAswYa B0u52/PK3qD11HwSyFbW9vL5y8kOAav8zf4Q31gY= Date: Tue, 15 May 2018 09:30:09 +0200 From: Greg Kroah-Hartman To: NeilBrown Cc: James Simmons , devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin , Linux Kernel Mailing List , Lustre Development List , Dmitry Eremin , "John L. Hammond" , James Simmons Subject: Re: [PATCH v2 1/5] staging: lustre: llite: add support set_acl method in inode operations Message-ID: <20180515073009.GB13000@kroah.com> References: <1526350623-4616-1-git-send-email-jsimmons@infradead.org> <1526350623-4616-2-git-send-email-jsimmons@infradead.org> <878t8l7ext.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878t8l7ext.fsf@notabene.neil.brown.name> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 01:53:02PM +1000, NeilBrown wrote: > On Mon, May 14 2018, James Simmons wrote: > > > From: Dmitry Eremin > > > > Linux kernel v3.14 adds set_acl method to inode operations. > > This patch adds support to Lustre for proper acl management. > > > > Signed-off-by: Dmitry Eremin > > Signed-off-by: John L. Hammond > > Signed-off-by: James Simmons > > Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 > > Reviewed-on: https://review.whamcloud.com/25965 > > Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-10541 > > Reviewed-on: https://review.whamcloud.com/31588 > > Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-10926 > > Reviewed-on: https://review.whamcloud.com/32045 > > Reviewed-by: Bob Glossman > > Reviewed-by: James Simmons > > Reviewed-by: Andreas Dilger > > Reviewed-by: Dmitry Eremin > > Reviewed-by: Oleg Drokin > > Signed-off-by: James Simmons > > --- > > Changelog: > > > > v1) Initial patch ported to staging tree > > v2) Fixed up goto handling and avoid BUG() when calling > > forget_cached_acl()with invalid type as pointed out by Dan Carpenter > > > > drivers/staging/lustre/lustre/llite/file.c | 62 ++++++++++++++++++++++ > > .../staging/lustre/lustre/llite/llite_internal.h | 4 ++ > > drivers/staging/lustre/lustre/llite/namei.c | 10 +++- > > 3 files changed, 74 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c > > index 0026fde..64a5698 100644 > > --- a/drivers/staging/lustre/lustre/llite/file.c > > +++ b/drivers/staging/lustre/lustre/llite/file.c > > @@ -3030,6 +3030,7 @@ static int ll_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, > > return rc; > > } > > > > +#ifdef CONFIG_FS_POSIX_ACL > > Using #ifdef in .c files is generally discouraged. > The "standard" approach here is: > - put the acl code in a separate file (acl.c) > - optionally include it via the Make file > lustre-$(CONFIG_FS_POSIX_ACL) += acl.o > > - in the header where ll_get_acl and ll_set_acl are declared have > #ifdef CONFIG_FS_POSIX_ACL > declare the functions > #else > #define ll_get_acl NULL > #define ll_set_acl NULL > #endif > > Now as this is staging and that is (presumably) an upstream patch > lightly improved it is probably fine to include the patch as-is, > but in that case we will probably want to fix it up later. Let's get it right the first time if at all possible please. I'll drop this series from my queue and wait for the next version of it. thanks, greg k-h