diff options
author | Frank Sorenson <sorenson@redhat.com> | 2018-10-30 15:06:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-31 08:54:14 -0700 |
commit | 6bb885ecd746752aa70d146b58f2f83e5e21813d (patch) | |
tree | f32ed7a4fda8e9fc8317adf2b024cd87d05fcc5a /fs/fat/namei_msdos.c | |
parent | d9f4d94261d52a5fe31ad2ec00a06824a150af6f (diff) | |
download | linux-rpi-6bb885ecd746752aa70d146b58f2f83e5e21813d.tar.gz linux-rpi-6bb885ecd746752aa70d146b58f2f83e5e21813d.tar.bz2 linux-rpi-6bb885ecd746752aa70d146b58f2f83e5e21813d.zip |
fat: add functions to update and truncate timestamps appropriately
Add the fat-specific inode_operation ->update_time() and
fat_truncate_time() function to truncate the inode timestamps from 1
nanosecond to the appropriate granularity.
Link: http://lkml.kernel.org/r/38af1ba3c3cf0d7381ce7b63077ef8af75901532.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/namei_msdos.c')
-rw-r--r-- | fs/fat/namei_msdos.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c index efb8c40c9d27..effbdd5fbf6e 100644 --- a/fs/fat/namei_msdos.c +++ b/fs/fat/namei_msdos.c @@ -637,6 +637,7 @@ static const struct inode_operations msdos_dir_inode_operations = { .rename = msdos_rename, .setattr = fat_setattr, .getattr = fat_getattr, + .update_time = fat_update_time, }; static void setup(struct super_block *sb) |