]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: drop legacy pre-1970 encoding workaround
authorTheodore Ts'o <tytso@mit.edu>
Mon, 12 Aug 2019 17:44:49 +0000 (13:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 Aug 2019 17:44:49 +0000 (13:44 -0400)
commit73600ceeb320cc5196dda4ee9bdfab26aa3cf2d7
treeb6bf93e9c34772d32b2677e5a6267e328c82f8ff
parentd964b2110d7fbfacdb5cf28abbc07194f0a92779
ext4: drop legacy pre-1970 encoding workaround

Originally, support for expanded timestamps had a bug in that pre-1970
times were erroneously encoded as being in the the 24th century.  This
was fixed in commit ac6150f3c327 ("ext4: Fix handling of extended
tv_sec") which landed in 4.4.  Starting with 4.4, pre-1970 timestamps
were correctly encoded, but for backwards compatibility those
incorrectly encoded timestamps were mapped back to the pre-1970 dates.

Given that backwards compatibility workaround has been around for 4
years, and given that running e2fsck from e2fsprogs 1.43.2 and later
will offer to fix these timestamps (which has been released for 3
years), it's past time to drop the legacy workaround from the kernel.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h