Skip to contentSkip to conversation

direct-io: Change is_async member of struct dio from int to bool

PATCH New Ritesh Harjani 1 participant 1 message Sep 27, 2019 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 direct-io: Change is_async member of struct dio from int to bool

Change is_async member of struct dio from int to bool. Found this during code review.

---
 fs/direct-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/direct-io.c +1 -1
index ae196784f487..b139876653ef 100644
@@ -128,7 +128,7 @@ struct dio {
 	/* BIO completion state */
 	spinlock_t bio_lock;		/* protects BIO fields below */
 	int page_errors;		/* errno from get_user_pages() */
-	int is_async;			/* is IO async ? */
+	bool is_async;			/* is IO async ? */
 	bool defer_completion;		/* defer AIO completion to workqueue? */
 	bool should_dirty;		/* if pages should be dirtied */
 	int io_error;			/* IO error in completion path */
Signature · 1 line
2.21.0