Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ad99f777 authored by Andrew Price's avatar Andrew Price Committed by Steven Whitehouse
Browse files

[GFS2] Fix cast from unsigned int to s64



This fixes bz 444829 where allocating a new block caused gfs2 file systems to
report 0 bytes used in df. It was caused by a broken cast from an unsigned int
in gfs2_block_alloc() to a negative s64 in gfs2_statfs_change(). This patch
casts the unsigned int to an s64 before the unary minus is applied.

Signed-off-by: default avatarAndrew Price <andy@andrewprice.me.uk>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 091806ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment