summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-11-15 10:30:32 -0500
committerJan Kara <jack@suse.cz>2024-12-11 17:28:41 +0100
commit5121711eb8dbcbed70b1db429a4665f413844164 (patch)
treeb0bd0dd289f4b86622cb7c5eb95764957336a392 /fs/ext4
parentbb480760ffc7018e21ee6f60241c2b99ff26ee0e (diff)
downloadlinux-5121711eb8dbcbed70b1db429a4665f413844164.tar.gz
linux-5121711eb8dbcbed70b1db429a4665f413844164.tar.bz2
linux-5121711eb8dbcbed70b1db429a4665f413844164.zip
fs: enable pre-content events on supported file systems
Now that all the code has been added for pre-content events, and the various file systems that need the page fault hooks for fsnotify have been updated, add SB_I_ALLOW_HSM to the supported file systems. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/46960dcb2725fa0317895ed66a8409ba1c306a82.1731684329.git.josef@toxicpanda.com
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 785809f33ff4..029fc5fc4ffe 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5312,6 +5312,9 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
/* i_version is always enabled now */
sb->s_flags |= SB_I_VERSION;
+ /* HSM events are allowed by default. */
+ sb->s_iflags |= SB_I_ALLOW_HSM;
+
err = ext4_check_feature_compatibility(sb, es, silent);
if (err)
goto failed_mount;