alistair23-linux/fs/fat
Frank Sorenson d9f4d94261 fat: create a function to calculate the timezone offest
Patch series "fat: timestamp updates", v5.

fat/msdos timestamps are stored on-disk with several different
granularities, some of them lower resolution than timespec64_trunc() can
provide.  In addition, they are only truncated as they are written to
disk, so the timestamps in-memory for new or modified files/directories
may be different from the same timestamps after a remount, as the
now-truncated times are re-read from the on-disk format.

These patches allow finer granularity for the timestamps where possible
and add fat-specific ->update_time inode operation and fat_truncate_time
functions to truncate each timestamp correctly, giving consistent times
across remounts.

This patch (of 4):

Move the calculation of the number of seconds in the timezone offset to a
common function.

Link: http://lkml.kernel.org/r/3671ff8cff5eeedbb85ebda5e4de0728920db4f6.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>
2018-10-31 08:54:14 -07:00
..
cache.c fat: validate ->i_start before using 2018-08-22 10:52:50 -07:00
dir.c fat: expand a slightly out-of-date comment 2018-10-31 08:54:14 -07:00
fat.h fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
fatent.c fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters() 2018-10-13 09:31:03 +02:00
file.c fat: add FITRIM ioctl for FAT file system 2018-08-22 10:52:50 -07:00
inode.c fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
Kconfig fat: add config option to set UTF-8 mount option by default 2016-03-22 15:36:02 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.c fat: create a function to calculate the timezone offest 2018-10-31 08:54:14 -07:00
namei_msdos.c fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
namei_vfat.c fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
nfs.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00