[PATCH] Update cfq io scheduler to time sliced design
[linux-2.6-block.git] / include / linux / writeback.h
index 1262cb43c3abcd78553e0b819adf0548fb2c0c33..d5c3fe1bf33d0eb8cae67930dc02efc53dc17136 100644 (file)
@@ -14,11 +14,13 @@ extern struct list_head inode_unused;
  * Yes, writeback.h requires sched.h
  * No, sched.h is not included from here.
  */
-static inline int current_is_pdflush(void)
+static inline int task_is_pdflush(struct task_struct *task)
 {
-       return current->flags & PF_FLUSHER;
+       return task->flags & PF_FLUSHER;
 }
 
+#define current_is_pdflush()   task_is_pdflush(current)
+
 /*
  * fs/fs-writeback.c
  */