]> git.baikalelectronics.ru Git - kernel.git/commit
fat: truncate inode timestamp updates in setattr
authorFrank Sorenson <sorenson@redhat.com>
Tue, 30 Oct 2018 22:07:01 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Oct 2018 15:54:14 +0000 (08:54 -0700)
commit094a42b2282c2866ffc3f078f4bbf058fdf2d29a
tree8a48fb2438b3fb4ef8051fe14a48c8e5d0422a9d
parente10db6bfd506ceb18043f8b7b69e0989543301e3
fat: truncate inode timestamp updates in setattr

setattr_copy can't truncate timestamps correctly for
msdos/vfat, so truncate and copy them ourselves.

Link: http://lkml.kernel.org/r/a2b4701b1125573fafaeaae6802050ca86d6f8cc.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>
fs/fat/file.c