diff options
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 26 | 
1 files changed, 2 insertions, 24 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index cc97d6caf2b..c24eca71e80 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -27,10 +27,6 @@ enum writeback_sync_modes {   * in a manner such that unspecified fields are set to zero.   */  struct writeback_control { -	struct backing_dev_info *bdi;	/* If !NULL, only write back this -					   queue */ -	struct super_block *sb;		/* if !NULL, only write inodes from -					   this super_block */  	enum writeback_sync_modes sync_mode;  	unsigned long *older_than_this;	/* If !NULL, only write back inodes  					   older than this */ @@ -56,24 +52,6 @@ struct writeback_control {  	unsigned for_reclaim:1;		/* Invoked from the page allocator */  	unsigned range_cyclic:1;	/* range_start is cyclic */  	unsigned more_io:1;		/* more io to be dispatched */ -	/* -	 * write_cache_pages() won't update wbc->nr_to_write and -	 * mapping->writeback_index if no_nrwrite_index_update -	 * is set.  write_cache_pages() may write more than we -	 * requested and we want to make sure nr_to_write and -	 * writeback_index are updated in a consistent manner -	 * so we use a single control to update them -	 */ -	unsigned no_nrwrite_index_update:1; - -	/* -	 * For WB_SYNC_ALL, the sb must always be pinned. For WB_SYNC_NONE, -	 * the writeback code will pin the sb for the caller. However, -	 * for eg umount, the caller does WB_SYNC_NONE but already has -	 * the sb pinned. If the below is set, caller already has the -	 * sb pinned. -	 */ -	unsigned sb_pinned:1;  };  /* @@ -82,10 +60,10 @@ struct writeback_control {  struct bdi_writeback;  int inode_wait(void *);  void writeback_inodes_sb(struct super_block *); -void writeback_inodes_sb_locked(struct super_block *);  int writeback_inodes_sb_if_idle(struct super_block *);  void sync_inodes_sb(struct super_block *); -void writeback_inodes_wbc(struct writeback_control *wbc); +void writeback_inodes_wb(struct bdi_writeback *wb, +		struct writeback_control *wbc);  long wb_do_writeback(struct bdi_writeback *wb, int force_wait);  void wakeup_flusher_threads(long nr_pages);  |