From fd797305e8957beb3f1b84314fe1a0cde3272325 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:31 +0100 Subject: [PATCH] Revert "mount: warn only once about timestamp range expiration" This reverts commit c9b4f8d73ebe4aa1f41e30cfa3464f3723445e58. --- fs/namespace.c | 2 -- include/linux/fs.h | 1 - 2 files changed, 3 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 709026bcf..eb5a2195c 100755 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2890,7 +2890,6 @@ static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount * struct super_block *sb = mnt->mnt_sb; if (!__mnt_is_readonly(mnt) && - (!(sb->s_iflags & SB_I_TS_EXPIRY_WARNED)) && (ktime_get_real_seconds() + TIME_UPTIME_SEC_MAX > sb->s_time_max)) { char *buf = (char *)__get_free_page(GFP_KERNEL); char *mntpath = buf ? d_path(mountpoint, buf, PAGE_SIZE) : ERR_PTR(-ENOMEM); @@ -2905,7 +2904,6 @@ static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount * tm.tm_year+1900, (unsigned long long)sb->s_time_max); free_page((unsigned long)buf); - sb->s_iflags |= SB_I_TS_EXPIRY_WARNED; } } diff --git a/include/linux/fs.h b/include/linux/fs.h index bb2d814e7..4a4884ca6 100755 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1445,7 +1445,6 @@ extern int send_sigurg(struct fown_struct *fown); #define SB_I_SKIP_SYNC 0x00000100 /* Skip superblock at global sync */ #define SB_I_PERSB_BDI 0x00000200 /* has a per-sb bdi */ -#define SB_I_TS_EXPIRY_WARNED 0x00000400 /* warned about timestamp range expiry */ /* Possible states of 'frozen' field */ enum {