]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Fix time handling
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 29 Apr 2021 02:51:42 +0000 (22:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:02 +0000 (17:09 -0400)
commit595c1e9bab7fd5512250d0e297e50a549af59b1f
treea66d69cfe31dd911c0ca62d426b44b02ac63a93c
parent4f6dad46cb4b6db75758bc790a74d7f0f04e450b
bcachefs: Fix time handling

There were some overflows in the time conversion functions - fix this by
converting tv_sec and tv_nsec separately. Also, set sb->time_min and
sb->time_max.

Fixes xfstest generic/258.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/fs.c
fs/bcachefs/super-io.c