]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: super: extend timestamps to 40 bits
authorArnd Bergmann <arnd@arndb.de>
Sun, 29 Jul 2018 19:51:48 +0000 (15:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 19:51:48 +0000 (15:51 -0400)
commit21353a1d42998085b7ef0ada462e267fc989d139
treee86f4d3e34620c66c4ed18d890650012d584a87c
parentb537cdd17d0b21cf23b810af3f85b5bacaa83b73
ext4: super: extend timestamps to 40 bits

The inode timestamps use 34 bits in ext4, but the various timestamps in
the superblock are limited to 32 bits. If every user accesses these as
'unsigned', then this is good until year 2106, but it seems better to
extend this a bit further in the process of removing the deprecated
get_seconds() function.

This adds another byte for each timestamp in the superblock, making
them long enough to store timestamps beyond what is in the inodes,
which seems good enough here (in ocfs2, they are already 64-bit wide,
which is appropriate for a new layout).

I did not modify e2fsprogs, which obviously needs the same change to
actually interpret future timestamps correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/super.c
fs/ext4/sysfs.c