Skip to content

Commit 5121711

Browse files
josefbacikjankara
authored andcommitted
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/46960dcb2725fa0317895ed66a8409ba1c306a82.1731684329.git.josef@toxicpanda.com
1 parent bb48076 commit 5121711

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ static int btrfs_fill_super(struct super_block *sb,
961961
#endif
962962
sb->s_xattr = btrfs_xattr_handlers;
963963
sb->s_time_gran = 1;
964-
sb->s_iflags |= SB_I_CGROUPWB;
964+
sb->s_iflags |= SB_I_CGROUPWB | SB_I_ALLOW_HSM;
965965

966966
err = super_setup_bdi(sb);
967967
if (err) {

fs/ext4/super.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5312,6 +5312,9 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
53125312
/* i_version is always enabled now */
53135313
sb->s_flags |= SB_I_VERSION;
53145314

5315+
/* HSM events are allowed by default. */
5316+
sb->s_iflags |= SB_I_ALLOW_HSM;
5317+
53155318
err = ext4_check_feature_compatibility(sb, es, silent);
53165319
if (err)
53175320
goto failed_mount;

fs/xfs/xfs_super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ xfs_fs_fill_super(
17301730
sb->s_time_max = XFS_LEGACY_TIME_MAX;
17311731
}
17321732
trace_xfs_inode_timestamp_range(mp, sb->s_time_min, sb->s_time_max);
1733-
sb->s_iflags |= SB_I_CGROUPWB;
1733+
sb->s_iflags |= SB_I_CGROUPWB | SB_I_ALLOW_HSM;
17341734

17351735
set_posix_acl_flag(sb);
17361736

0 commit comments

Comments
 (0)