Skip to content

Commit

Permalink
writeback: get rid of pdflush completely
Browse files Browse the repository at this point in the history
It is now unused, so kill it off.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Sep 11, 2009
1 parent 03ba378 commit d0bceac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 282 deletions.
5 changes: 5 additions & 0 deletions fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@

#define inode_to_bdi(inode) ((inode)->i_mapping->backing_dev_info)

/*
* We don't actually have pdflush, but this one is exported though /proc...
*/
int nr_pdflush_threads;

/*
* Work items for the bdi_writeback threads
*/
Expand Down
12 changes: 0 additions & 12 deletions include/linux/writeback.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ extern spinlock_t inode_lock;
extern struct list_head inode_in_use;
extern struct list_head inode_unused;

/*
* Yes, writeback.h requires sched.h
* No, sched.h is not included from here.
*/
static inline int task_is_pdflush(struct task_struct *task)
{
return task->flags & PF_FLUSHER;
}

#define current_is_pdflush() task_is_pdflush(current)

/*
* fs/fs-writeback.c
*/
Expand Down Expand Up @@ -155,7 +144,6 @@ balance_dirty_pages_ratelimited(struct address_space *mapping)
typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc,
void *data);

int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0);
int generic_writepages(struct address_space *mapping,
struct writeback_control *wbc);
int write_cache_pages(struct address_space *mapping,
Expand Down
2 changes: 1 addition & 1 deletion mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \
vmalloc.o

obj-y := bootmem.o filemap.o mempool.o oom_kill.o fadvise.o \
maccess.o page_alloc.o page-writeback.o pdflush.o \
maccess.o page_alloc.o page-writeback.o \
readahead.o swap.o truncate.o vmscan.o shmem.o \
prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \
page_isolation.o mm_init.o $(mmu-y)
Expand Down
269 changes: 0 additions & 269 deletions mm/pdflush.c

This file was deleted.

0 comments on commit d0bceac

Please sign in to comment.