Re: [PATCH] btrfs: Fix 64-bit divisions in btrfs_commit_stats_show() on 32-bit

From: David Sterba
Date: Thu Jun 16 2022 - 15:37:53 EST


On Thu, Jun 16, 2022 at 10:08:14AM +0200, Geert Uytterhoeven wrote:
> On 32-bit (e.g. m68k):
>
> ERROR: modpost: "__udivdi3" [fs/btrfs/btrfs.ko] undefined!
>
> Fix this by using div_u64() instead.
>
> Reported-by: noreply@xxxxxxxxxxxxxx
> Fixes: e665ec2ab6e1ae36 ("btrfs: Expose the BTRFS commit stats through sysfs")
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Folded to the patch, thanks.