Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7605381ybi; Wed, 5 Jun 2019 21:33:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqweDueT2Lgx7Sx/+0xRGjQMREOk8Rnjy5gvmCFTunvIexVG1FoBZQGmPb2AlCP/iwn8dPlo X-Received: by 2002:a62:1b0c:: with SMTP id b12mr49548240pfb.230.1559795600869; Wed, 05 Jun 2019 21:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559795600; cv=none; d=google.com; s=arc-20160816; b=0BC38hrIKdKvtY5H/4lnFFrMbjESdk3CkUFY0/t3Nu+YkYAsvdntcIngUntfA3iB13 +OQdGAaO/fV+XA7VN+lts7eCzpNE+dFVcCDqUHXMB3wBAaOK+y2RV5gruGJoSOWw5Qv/ aI6ylR5lybXOI1VpyUXRjqpS0MlN82njstyA3+ESrfIN1Mh6ZgLguikfzJgOiz7wLEUE QlOC8Yeit1Hh2Z/eDRTic557bwjolvkGjA9YylSI0sNPA1q75+qLOjHkTJBn2Zo0l5Jk c7zoz0sByauH2yKujx2CE4fKbCZJoMqbsl7V6WACf6pd4FJ8jx/VdcImecU+zzqtomuk jSvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=bsZifgz0SIlDcXcSo3Ws+LcOmMza89DsMDLo0jxX0mY=; b=vGLu63MXngamBsH16Jow+5sVgJ+D5Up7OrO5/BoQVnKZ0IaSpCVtJFY2csi0nyLT7j W0sWdTuEqslxGBfasSUBHPgsY9Or3cLC/p3iLvhJgSbUGiz/YsVoLCpc4xDwaxm7HAAx W3V9JmHgLd6MCeozN+xYSrCbnJPW61A5Jvw0jLyzrPdY1M+y+sjcp8Tg2g2+hKl9C64s +tuFHJ1mEcoxJ9onB+axKD5/89/12sRZ+Ph52QvgHq5wyOG2SFi630+k6UdbQDhG00ly MHA9UtYmvds+IxTKQ9aTZs7hC/9pRreyrUG7LLB4sJEVvc9ifodZUqE7bZ7g+/YHSg4s O7OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iqnSianw; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m23si1015897pgj.296.2019.06.05.21.32.48; Wed, 05 Jun 2019 21:33:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@gmail.com header.s=20161025 header.b=iqnSianw; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725782AbfFFEcj (ORCPT + 99 others); Thu, 6 Jun 2019 00:32:39 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39083 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbfFFEcj (ORCPT ); Thu, 6 Jun 2019 00:32:39 -0400 Received: by mail-pl1-f195.google.com with SMTP id g9so387100plm.6 for ; Wed, 05 Jun 2019 21:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bsZifgz0SIlDcXcSo3Ws+LcOmMza89DsMDLo0jxX0mY=; b=iqnSianw8jj6n3YvYj4BoeqYUzGQFttsmePpo2Xa7qRsjxDdHfwPayxO8qot8vHGtp ezAw7DHRwi8/wb7cVZowLav5POX7P5MuNWMUEn+HZ7qo9ROXOTxoshR0wHQVCF8DFDv7 3jpd5FDPTBl+8r33hf6J6FPXrJXa3lK4r5eLYg1UbprusnFWdjGIzQogiKCBQY7efs32 hbohwI8dCG0rYZmi8HZ1eBOSNJMbtdyh1PENUoaPM72IL3LRpzQtggZGnk6n4hmSaw3w +R+arcscxzXomdhqFYnbZoLuaz2ALLIOGAJzzG/Es9jPdcuMJpn5fcFQN72C166zCFDB 1Gig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bsZifgz0SIlDcXcSo3Ws+LcOmMza89DsMDLo0jxX0mY=; b=lCMlNPhS3zqZ1EblNeU4jlvfH+5G6T2v29V1NOf/ro0eNDavyQmx6VrIkRQPlVjf+W A0hnHx9eIkMfPIJ8QuoaT5RBDQ23mtM4W/WxBSD7K8oJodWN7DQ9FOLKOgQLuEj7ONr/ ljxpMozygBe1EZbVgg0dbWVEs4OdCxa2IkbtyqIf/KvWAqM8KqXy3jebwS2/2HbJeXmr TWU268+EaJcXy50pr6EoftaBFUq7Ll2a3VWkjh4C1W2cZJvuQPzFAFcQM47oP3J12rf4 PzNeTdbCKxH0d55ON3+Pn498AYV9eCc+5AdZFxr5zI+34bIPvk79p65924E/X+TG1INd reSQ== X-Gm-Message-State: APjAAAXz03140ZKJq5CsmEUg2odM4I5/DuyiaUNdoinlwKIuoH6juyi7 G9t2tkCwsB8199aeJjcmLrsdfpoj X-Received: by 2002:a17:902:7e0f:: with SMTP id b15mr40026886plm.237.1559795558655; Wed, 05 Jun 2019 21:32:38 -0700 (PDT) Received: from localhost.localdomain (fs276ec80e.tkyc203.ap.nuro.jp. [39.110.200.14]) by smtp.gmail.com with ESMTPSA id f17sm445069pgv.16.2019.06.05.21.32.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 21:32:37 -0700 (PDT) From: Wang Shilong X-Google-Original-From: Wang Shilong To: linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Wang Shilong , Andreas Dilger Subject: [PATCH 1/2] ext4: only set project inherit bit for directory Date: Thu, 6 Jun 2019 13:32:24 +0900 Message-Id: <1559795545-17290-1-git-send-email-wshilong1991@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Wang Shilong It doesn't make any sense to have project inherit bits for regular files, even though this won't cause any problem, but it is better fix this. Cc: Andreas Dilger Signed-off-by: Wang Shilong --- fs/ext4/ext4.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 1cb67859e051..ceb74093e138 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -421,7 +421,8 @@ struct flex_groups { EXT4_PROJINHERIT_FL | EXT4_CASEFOLD_FL) /* Flags that are appropriate for regular files (all but dir-specific ones). */ -#define EXT4_REG_FLMASK (~(EXT4_DIRSYNC_FL | EXT4_TOPDIR_FL | EXT4_CASEFOLD_FL)) +#define EXT4_REG_FLMASK (~(EXT4_DIRSYNC_FL | EXT4_TOPDIR_FL | EXT4_CASEFOLD_FL |\ + EXT4_PROJINHERIT_FL)) /* Flags that are appropriate for non-directories/regular files. */ #define EXT4_OTHER_FLMASK (EXT4_NODUMP_FL | EXT4_NOATIME_FL) -- 2.21.0