Commit cd8ed2a4 authored by Yan Hong's avatar Yan Hong Committed by Linus Torvalds

fs/fs-writeback.c: remove unneccesary parameter of __writeback_single_inode()

The parameter 'wb' is never used in this function.
Signed-off-by: default avatarYan Hong <clouds.yan@gmail.com>
Acked-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c462f179
...@@ -439,8 +439,7 @@ static void requeue_inode(struct inode *inode, struct bdi_writeback *wb, ...@@ -439,8 +439,7 @@ static void requeue_inode(struct inode *inode, struct bdi_writeback *wb,
* setting I_SYNC flag and calling inode_sync_complete() to clear it. * setting I_SYNC flag and calling inode_sync_complete() to clear it.
*/ */
static int static int
__writeback_single_inode(struct inode *inode, struct bdi_writeback *wb, __writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
struct writeback_control *wbc)
{ {
struct address_space *mapping = inode->i_mapping; struct address_space *mapping = inode->i_mapping;
long nr_to_write = wbc->nr_to_write; long nr_to_write = wbc->nr_to_write;
...@@ -527,7 +526,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb, ...@@ -527,7 +526,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,
inode->i_state |= I_SYNC; inode->i_state |= I_SYNC;
spin_unlock(&inode->i_lock); spin_unlock(&inode->i_lock);
ret = __writeback_single_inode(inode, wb, wbc); ret = __writeback_single_inode(inode, wbc);
spin_lock(&wb->list_lock); spin_lock(&wb->list_lock);
spin_lock(&inode->i_lock); spin_lock(&inode->i_lock);
...@@ -670,7 +669,7 @@ static long writeback_sb_inodes(struct super_block *sb, ...@@ -670,7 +669,7 @@ static long writeback_sb_inodes(struct super_block *sb,
* We use I_SYNC to pin the inode in memory. While it is set * We use I_SYNC to pin the inode in memory. While it is set
* evict_inode() will wait so the inode cannot be freed. * evict_inode() will wait so the inode cannot be freed.
*/ */
__writeback_single_inode(inode, wb, &wbc); __writeback_single_inode(inode, &wbc);
work->nr_pages -= write_chunk - wbc.nr_to_write; work->nr_pages -= write_chunk - wbc.nr_to_write;
wrote += write_chunk - wbc.nr_to_write; wrote += write_chunk - wbc.nr_to_write;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment