Skip to content

Commit

Permalink
fs/fs-writeback.c: remove unneccesary parameter of __writeback_single…
Browse files Browse the repository at this point in the history
…_inode()

The parameter 'wb' is never used in this function.

Signed-off-by: Yan Hong <clouds.yan@gmail.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Yan Hong authored and Linus Torvalds committed Oct 9, 2012
1 parent c462f17 commit cd8ed2a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
static int
__writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,
struct writeback_control *wbc)
__writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
{
struct address_space *mapping = inode->i_mapping;
long nr_to_write = wbc->nr_to_write;
Expand Down Expand Up @@ -527,7 +526,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,
inode->i_state |= I_SYNC;
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(&inode->i_lock);
Expand Down Expand Up @@ -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
* 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;
wrote += write_chunk - wbc.nr_to_write;
Expand Down

0 comments on commit cd8ed2a

Please sign in to comment.