summaryrefslogtreecommitdiff
path: root/fs/fat/dir.c
diff options
context:
space:
mode:
authorFrank Sorenson <sorenson@redhat.com>2018-10-31 01:06:57 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-31 18:54:14 +0300
commitcd83f6b194e95fa616dd3157ae7a63d4713b6670 (patch)
treec02e26444823a63bf113906889b5041fc09a55ea /fs/fat/dir.c
parent6bb885ecd746752aa70d146b58f2f83e5e21813d (diff)
downloadlinux-cd83f6b194e95fa616dd3157ae7a63d4713b6670.tar.xz
fat: change timestamp updates to use fat_truncate_time
Convert the inode timestamp updates to use fat_truncate_time. Link: http://lkml.kernel.org/r/2663d3083c4dd62f00b64612c8eaf5542bb05a4c.1538363961.git.sorenson@redhat.com Signed-off-by: Frank Sorenson <sorenson@redhat.com> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fat/dir.c')
-rw-r--r--fs/fat/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index ce5f958f6b23..c8366cb8eccd 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -1073,7 +1073,7 @@ int fat_remove_entries(struct inode *dir, struct fat_slot_info *sinfo)
}
}
- dir->i_mtime = dir->i_atime = current_time(dir);
+ fat_truncate_time(dir, NULL, S_ATIME|S_MTIME);
if (IS_DIRSYNC(dir))
(void)fat_sync_inode(dir);
else