Commit 9f2390ee authored by Linus Torvalds's avatar Linus Torvalds

Don't use signed one-bit bitfields.

We assign 0 and 1 to it, but since it's signed, that's
actually already overflowing the poor thing. So make
it unsigned, which is what it really was supposed to be
in the first place.
parent 0eacfd61
......@@ -51,10 +51,10 @@ struct writeback_control {
loff_t start;
loff_t end;
int nonblocking:1; /* Don't get stuck on request queues */
int encountered_congestion:1; /* An output: a queue is full */
int for_kupdate:1; /* A kupdate writeback */
int for_reclaim:1; /* Invoked from the page allocator */
unsigned nonblocking:1; /* Don't get stuck on request queues */
unsigned encountered_congestion:1; /* An output: a queue is full */
unsigned for_kupdate:1; /* A kupdate writeback */
unsigned for_reclaim:1; /* Invoked from the page allocator */
};
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment