From 9f2390ee62f5c6a4caf1ea25eee3cc5c6bf47ab2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 23 Aug 2004 03:10:29 -0700 Subject: [PATCH] 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. --- include/linux/writeback.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 42157f942fa3..061865cfe82c 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -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 */ }; /* -- 2.39.5