fat-remove-time-truncations-in-vfat_create-vfat_mkdir.patch removed from -mm tree
The quilt patch titled
Subject: fat: remove time truncations in vfat_create/vfat_mkdir
has been removed from the -mm tree. Its filename was
fat-remove-time-truncations-in-vfat_create-vfat_mkdir.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Chung-Chiang Cheng <[email protected]>
Subject: fat: remove time truncations in vfat_create/vfat_mkdir
Date: Tue, 3 May 2022 23:25:36 +0800
All the timestamps in vfat_create() and vfat_mkdir() come from fat_time_fat2unix() which ensures time granularity. We don't need to truncate them to fit FAT's format.
Moreover, fat_truncate_crtime() and fat_timespec64_trunc_10ms() are also removed because there is no caller anymore.
---
fs/fat/fat.h | 2 -- fs/fat/misc.c | 21 --------------------- fs/fat/namei_vfat.c | 4 ---- 3 files changed, 27 deletions(-)
fs/fat/fat.h renamed from fs/fat/fat.h~fat-remove-time-truncations-in-vfat_create-vfat_mkdir +0 -2
@@ -456,8 +456,6 @@ extern void fat_time_unix2fat(struct msd __le16 *time, __le16 *date, u8 *time_cs);extern struct timespec64 fat_truncate_atime (const struct msdos_sb_info *sbi,const struct timespec64 *ts); -extern struct timespec64 fat_truncate_crtime (const struct msdos_sb_info *sbi, -const struct timespec64 *ts);extern struct timespec64 fat_truncate_mtime (const struct msdos_sb_info *sbi,const struct timespec64 *ts); extern int fat_truncate_time(struct inode *inode, struct timespec64 *now,
fs/fat/misc.c renamed from fs/fat/misc.c~fat-remove-time-truncations-in-vfat_create-vfat_mkdir +0 -21
@@ -281,13 +281,6 @@ static inline struct timespec64 fat_timereturn (struct timespec64 ){ ts.tv_sec & ~1ULL ,0 }; } -static inline struct timespec64 fat_timespec64_trunc_10ms (struct timespec64 ts) -{ -if (ts.tv_nsec) - ts.tv_nsec -= ts.tv_nsec %10000000UL ; -return ts; -} -/* * truncate atime to 24 hour granularity (00:00:00 in local timezone) */
@@ -306,20 +299,6 @@ struct timespec64 fat_truncate_atime(con }/* -* truncate creation time with appropriate granularity: -* msdos - 2 seconds -* vfat - 10 milliseconds -*/ -struct timespec64 fat_truncate_crtime (const struct msdos_sb_info *sbi, -const struct timespec64 *ts) -{ -if (sbi->options.isvfat) -return fat_timespec64_trunc_10ms (*ts); -else -return fat_timespec64_trunc_2secs (*ts); -} - -/* * truncate mtime to 2 second granularity */ struct timespec64 fat_truncate_mtime(const struct msdos_sb_info *sbi,
fs/fat/namei_vfat.c renamed from fs/fat/namei_vfat.c~fat-remove-time-truncations-in-vfat_create-vfat_mkdir +0 -4
@@ -780,8 +780,6 @@ static int vfat_create(struct user_names goto out; }inode_inc_iversion (inode); -fat_truncate_time (inode, &ts,S_ATIME |S_CTIME |S_MTIME ); -/* timestamp is already written, so mark_inode_dirty() is unneeded. */ d_instantiate (dentry, inode); out:
@@ -878,8 +876,6 @@ static int vfat_mkdir(struct user_namesp }inode_inc_iversion (inode);set_nlink (inode,2 ); -fat_truncate_time (inode, &ts,S_ATIME |S_CTIME |S_MTIME ); -/* timestamp is already written, so mark_inode_dirty() is unneeded. */ d_instantiate (dentry, inode);
_
Patches currently in -mm which might be from [email protected] are