提交 6f037937 编写于 作者: A Andreas Schwab 提交者: Jens Axboe

blk-throttle: don't call xchg on bool

xchg does not work portably with smaller than 32bit types.
Signed-off-by: NAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
上级 ee3dea35
...@@ -77,7 +77,7 @@ struct throtl_grp { ...@@ -77,7 +77,7 @@ struct throtl_grp {
unsigned long slice_end[2]; unsigned long slice_end[2];
/* Some throttle limits got updated for the group */ /* Some throttle limits got updated for the group */
bool limits_changed; int limits_changed;
}; };
struct throtl_data struct throtl_data
...@@ -102,7 +102,7 @@ struct throtl_data ...@@ -102,7 +102,7 @@ struct throtl_data
/* Work for dispatching throttled bios */ /* Work for dispatching throttled bios */
struct delayed_work throtl_work; struct delayed_work throtl_work;
bool limits_changed; int limits_changed;
}; };
enum tg_state_flags { enum tg_state_flags {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册