From: Al Viro Date: Wed, 14 Jun 2017 19:36:31 +0000 (-0400) Subject: ufs: make ufs_freespace() return signed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fffd70f58864f5a48b2c17d02730a460f86d4254;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ufs: make ufs_freespace() return signed as it is, checking that its return value is <= 0 is useless and that's how it's being used. Signed-off-by: Al Viro --- diff --git a/fs/ufs/util.h b/fs/ufs/util.h index 398019fb1448..1e1639f8a58b 100644 --- a/fs/ufs/util.h +++ b/fs/ufs/util.h @@ -354,12 +354,12 @@ static inline void *ubh_get_data_ptr(struct ufs_sb_private_info *uspi, * Determine the number of available frags given a * percentage to hold in reserve. */ -static inline u64 +static inline s64 ufs_freespace(struct ufs_sb_private_info *uspi, int percentreserved) { return ufs_blkstofrags(uspi->cs_total.cs_nbfree) + uspi->cs_total.cs_nffree - - (uspi->s_dsize * (percentreserved) / 100); + (uspi->s_dsize * percentreserved) / 100; } /*