summaryrefslogtreecommitdiffstats
path: root/block/partitions
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-07-26 12:17:41 +0800
committerJens Axboe <axboe@kernel.dk>2018-07-27 09:15:47 -0600
commit75cbb3f1d840429e6aa67b351332f38b29e6292c (patch)
tree3086aa7a8cbbd7b3cdbdb4b0b24cf278aedcfbe3 /block/partitions
parent9b4e9f5abb94b671f998ffc0efebd1582852fee3 (diff)
downloadlinux-75cbb3f1d840429e6aa67b351332f38b29e6292c.tar.bz2
bcache: stop using the deprecated get_seconds()
The get_seconds function is deprecated now since it returns a 32-bit value that will eventually overflow, and we are replacing it throughout the kernel with ktime_get_seconds() or ktime_get_real_seconds() that return a time64_t. bcache uses get_seconds() to read the current system time and store it in the superblock as well as in uuid_entry structures that are user visible. Unfortunately, the two structures in are still limited to 32 bits, so this won't fix any real problems but will still overflow in year 2106. Let's at least document that properly, in case we get an updated format in the future it can be fixed. We still have a long time before the overflow and checking the tools at https://github.com/koverstreet/bcache-tools reveals no access to any of them. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions')
0 files changed, 0 insertions, 0 deletions