From: Andreas Schwab Date: Wed, 30 Mar 2011 10:21:56 +0000 (+0200) Subject: blk-throttle: don't call xchg on bool X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f0379377047b18103b88ce33c03e5b19747ae57;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git blk-throttle: don't call xchg on bool xchg does not work portably with smaller than 32bit types. Signed-off-by: Andreas Schwab Signed-off-by: Jens Axboe --- diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 5352bdafbcf0..6c98cfeeedf0 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -77,7 +77,7 @@ struct throtl_grp { unsigned long slice_end[2]; /* Some throttle limits got updated for the group */ - bool limits_changed; + int limits_changed; }; struct throtl_data @@ -102,7 +102,7 @@ struct throtl_data /* Work for dispatching throttled bios */ struct delayed_work throtl_work; - bool limits_changed; + int limits_changed; }; enum tg_state_flags {