Message ID | 202312151817+0800-wangjinchao@xfusion.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-730-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9167860dys; Fri, 15 Dec 2023 02:17:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1Jd9yr/TbV0sUa3o/fvzyIG6a40eoW9xwIJGAA5OH7MaL2oBB4lYxjxEoM5tEanCgtBRK X-Received: by 2002:a05:620a:1263:b0:77d:d465:5cb9 with SMTP id b3-20020a05620a126300b0077dd4655cb9mr8883087qkl.16.1702635473680; Fri, 15 Dec 2023 02:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702635473; cv=none; d=google.com; s=arc-20160816; b=wxVLYOJBwoAgPwchUhWKok2Pds8H7+0st3ql4g+Mhn9njEWl6MGpEZvwPx+tTXoOQe Tboqn8y5lMM+gcxe3l8gUItjTIdbTvWszsREp0ECPzDrv3oClCh6Mk8x622MTUj8S3TC iwkdx8pcIlrc+p3xJVAL9ArCAds2ZE2R79Mc+YDh0VvY0iBEvVmQb97fXX0uLR1Ce8Sb mMDhrHeP0a4Nu9WNr17S+h13bbI1PhtZ2E2wHWxjcZW8hmpCGA7m9sMPXcPFG8KaPNub Qcxs6NKy8tob73ZOpkG9dbSvEw7G9PQ3Bm1nYz9ntXjHlNZRNllX34yFEVitLpebYORE qhuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=DreM5hgOzXcibPLxCicNyD4xov3MAFGU7byptwM189w=; fh=jzmacVWwOknhs3mcbPileunaIFy4qnFpK6nWEuz080g=; b=VUOLbD4HaomTjkurvsWUBKFNxzuxpdqBS820CmeVrzeCZ1lz9xD3Ao/jrVTz80z8F2 Q5iYSGC3t5CgZFF6pdbOAUzINaTR+d9K4wu9S/GsXC1M92ZZjXWWFqlh1CAkg648sAsQ hokXyjjRzBS8Qz0xoqA1pjXM8hPgehYTkAMNq3tIS+2rB/glTB//URCU4LRERIkq7+MQ x24eJG1G7cf1g1+zCBhsX0NkPA95NaY3uFaTKR52Xo/Vd9xRftMnzg86o4jaTnw3nLUy YxThiJYs8z+ArIltYaD+sz2fp3K9dAsX2aNcfcZFcH71mLc6J21yXPpRVt2Wost1Qvz2 0l3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-730-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-730-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pb26-20020a05620a839a00b0077f91185dcasi6781945qkn.98.2023.12.15.02.17.53 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-730-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-730-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-730-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 78B381C22C8D for <ouuuleilei@gmail.com>; Fri, 15 Dec 2023 10:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2488D24B2F; Fri, 15 Dec 2023 10:17:39 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wxsgout04.xfusion.com (wxsgout04.xfusion.com [36.139.87.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04582200AD; Fri, 15 Dec 2023 10:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xfusion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xfusion.com Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Ss4nP2LMzzB2NhJ; Fri, 15 Dec 2023 18:14:01 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 15 Dec 2023 18:17:31 +0800 Date: Fri, 15 Dec 2023 18:17:30 +0800 From: Wang Jinchao <wangjinchao@xfusion.com> To: Miklos Szeredi <miklos@szeredi.hu>, Amir Goldstein <amir73il@gmail.com>, <linux-unionfs@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <stone.xulei@xfusion.com>, <wangjinchao@xfusion.com> Subject: [PATCH] fs: remove duplicated including of posix_acl.h Message-ID: <202312151817+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-ClientProxiedBy: wuxshcsitd00602.xfusion.com (10.32.132.250) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785342694664708456 X-GMAIL-MSGID: 1785342694664708456 |
Series |
fs: remove duplicated including of posix_acl.h
|
|
Commit Message
Wang Jinchao
Dec. 15, 2023, 10:17 a.m. UTC
remove the second including of linux/posix_acl.h
Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
---
fs/overlayfs/inode.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Fri, Dec 15, 2023 at 12:17 PM Wang Jinchao <wangjinchao@xfusion.com> wrote: > > remove the second including of linux/posix_acl.h > > Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com> > --- > fs/overlayfs/inode.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c > index c63b31a460be..2003425875d9 100644 > --- a/fs/overlayfs/inode.c > +++ b/fs/overlayfs/inode.c > @@ -14,7 +14,6 @@ > #include <linux/fileattr.h> > #include <linux/security.h> > #include <linux/namei.h> > -#include <linux/posix_acl.h> > #include <linux/posix_acl_xattr.h> > #include "overlayfs.h" > Since both posix_acl.h and posix_acl_xattr.h are included by overlayfs.h I would rather remove them both including the first posix_acl.h include. It is far from being the only duplicate include in "overlayfs.h" and it is not important enough IMO to start a cleanup project, but if you are going to tidy up includes for a particular file, I'd rather use the opportunity to cleanup that duplicity as well. Thanks, Amir.
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index c63b31a460be..2003425875d9 100644 --- a/fs/overlayfs/inode.c +++ b/fs/overlayfs/inode.c @@ -14,7 +14,6 @@ #include <linux/fileattr.h> #include <linux/security.h> #include <linux/namei.h> -#include <linux/posix_acl.h> #include <linux/posix_acl_xattr.h> #include "overlayfs.h"