aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/inode.c
diff options
context:
space:
mode:
authorReed Riley <reed@riley.engineer>2024-09-05 16:59:29 +0000
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-09 09:41:47 -0400
commit27663d7784b5dfd354a968e06b26452dc93f2a16 (patch)
treec14c75f9e3bb1cd454b8137f1ff6b9744522c735 /fs/inode.c
parentbcachefs: Fix sysfs rebalance duration waited formatting (diff)
downloadwireguard-linux-27663d7784b5dfd354a968e06b26452dc93f2a16.tar.xz
wireguard-linux-27663d7784b5dfd354a968e06b26452dc93f2a16.zip
bcachefs: Replace div_u64 with div64_u64 where second param is u64
Bcachefs often uses this function to divide by nanosecond times - which can easily cause problems when cast to u32. For example, `cat /sys/fs/bcachefs/*/internal/rebalance_status` would return invalid data in the `duration waited` field because dividing by the number of nanoseconds in a minute requires the divisor parameter to be u64. Signed-off-by: Reed Riley <reed@riley.engineer> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions