summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorWang Shilong2019-06-10 06:13:32 +0200
committerTheodore Ts'o2019-06-10 06:13:32 +0200
commit7ddf79a103958ff7e529a3bc0c5b3d1e9cbc22c7 (patch)
treeee1c8feceb4f4a0126f56f6e401398178e2678e7 /fs/ext4/ext4.h
parentext4: enforce the immutable flag on open files (diff)
downloadkernel-qcow2-linux-7ddf79a103958ff7e529a3bc0c5b3d1e9cbc22c7.tar.gz
kernel-qcow2-linux-7ddf79a103958ff7e529a3bc0c5b3d1e9cbc22c7.tar.xz
kernel-qcow2-linux-7ddf79a103958ff7e529a3bc0c5b3d1e9cbc22c7.zip
ext4: only set project inherit bit for directory
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. Signed-off-by: Wang Shilong <wshilong@ddn.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h3
1 files changed, 2 insertions, 1 deletions
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)