Commit 766f9164193f6dda1497bbf3861060198421fb92

Authored by Peter Zijlstra
Committed by Linus Torvalds
1 parent 4ce6494dbd

kernel: remove PF_FLUSHER

PF_FLUSHER is only ever set, not tested, remove it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 3 changed files with 2 additions and 3 deletions Side-by-side Diff

... ... @@ -794,7 +794,7 @@
794 794 struct backing_dev_info *bdi = wb->bdi;
795 795 long pages_written;
796 796  
797   - current->flags |= PF_FLUSHER | PF_SWAPWRITE;
  797 + current->flags |= PF_SWAPWRITE;
798 798 set_freezable();
799 799 wb->last_active = jiffies;
800 800  
include/linux/sched.h
... ... @@ -1706,7 +1706,6 @@
1706 1706 #define PF_DUMPCORE 0x00000200 /* dumped core */
1707 1707 #define PF_SIGNALED 0x00000400 /* killed by a signal */
1708 1708 #define PF_MEMALLOC 0x00000800 /* Allocating memory */
1709   -#define PF_FLUSHER 0x00001000 /* responsible for disk writeback */
1710 1709 #define PF_USED_MATH 0x00002000 /* if unset the fpu must be initialized before use */
1711 1710 #define PF_FREEZING 0x00004000 /* freeze in progress. do not account to load */
1712 1711 #define PF_NOFREEZE 0x00008000 /* this thread should not be frozen */
... ... @@ -362,7 +362,7 @@
362 362 {
363 363 struct bdi_writeback *me = ptr;
364 364  
365   - current->flags |= PF_FLUSHER | PF_SWAPWRITE;
  365 + current->flags |= PF_SWAPWRITE;
366 366 set_freezable();
367 367  
368 368 /*