diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-17 22:06:51 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:53 +0200 |
commit | f2c6e4b3621778103805fe4d5f384db3fcd96159 (patch) | |
tree | 9c6bfab3db4de826fd3dca70fb96cea934220c16 /fs/bcachefs/util.c | |
parent | bcachefs: Fix insert_snapshot_whiteouts() (diff) | |
download | linux-f2c6e4b3621778103805fe4d5f384db3fcd96159.tar.xz linux-f2c6e4b3621778103805fe4d5f384db3fcd96159.zip |
bcachefs: Fix integer overflow warnings on 32 bit
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.c')
-rw-r--r-- | fs/bcachefs/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index 12f4107662fc..e0c93da2523f 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -428,8 +428,8 @@ static const struct time_unit { { "us", NSEC_PER_USEC }, { "ms", NSEC_PER_MSEC }, { "s", NSEC_PER_SEC }, - { "m", NSEC_PER_SEC * 60}, - { "h", NSEC_PER_SEC * 3600}, + { "m", (u64) NSEC_PER_SEC * 60}, + { "h", (u64) NSEC_PER_SEC * 3600}, { "eon", U64_MAX }, }; |