diff options
author | Yan Hong <clouds.yan@gmail.com> | 2012-10-08 19:33:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 03:23:00 -0400 |
commit | cd8ed2a45a401cb692d769e92de7d73aa42fabce (patch) | |
tree | f1e04264e9fdb2eb7ecc2aae21137ca391541749 | |
parent | c462f179e4d273f0da0e7cf302e29b0edf43844e (diff) |
fs/fs-writeback.c: remove unneccesary parameter of __writeback_single_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>
-rw-r--r-- | fs/fs-writeback.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 8e1d7b9e4a33..401b6c6248ae 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -439,8 +439,7 @@ static void requeue_inode(struct inode *inode, struct bdi_writeback *wb, | |||
439 | * setting I_SYNC flag and calling inode_sync_complete() to clear it. | 439 | * setting I_SYNC flag and calling inode_sync_complete() to clear it. |
440 | */ | 440 | */ |
441 | static int | 441 | static int |
442 | __writeback_single_inode(struct inode *inode, struct bdi_writeback *wb, | 442 | __writeback_single_inode(struct inode *inode, struct writeback_control *wbc) |
443 | struct writeback_control *wbc) | ||
444 | { | 443 | { |
445 | struct address_space *mapping = inode->i_mapping; | 444 | struct address_space *mapping = inode->i_mapping; |
446 | long nr_to_write = wbc->nr_to_write; | 445 | long nr_to_write = wbc->nr_to_write; |
@@ -527,7 +526,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb, | |||
527 | inode->i_state |= I_SYNC; | 526 | inode->i_state |= I_SYNC; |
528 | spin_unlock(&inode->i_lock); | 527 | spin_unlock(&inode->i_lock); |
529 | 528 | ||
530 | ret = __writeback_single_inode(inode, wb, wbc); | 529 | ret = __writeback_single_inode(inode, wbc); |
531 | 530 | ||
532 | spin_lock(&wb->list_lock); | 531 | spin_lock(&wb->list_lock); |
533 | spin_lock(&inode->i_lock); | 532 | spin_lock(&inode->i_lock); |
@@ -670,7 +669,7 @@ static long writeback_sb_inodes(struct super_block *sb, | |||
670 | * We use I_SYNC to pin the inode in memory. While it is set | 669 | * We use I_SYNC to pin the inode in memory. While it is set |
671 | * evict_inode() will wait so the inode cannot be freed. | 670 | * evict_inode() will wait so the inode cannot be freed. |
672 | */ | 671 | */ |
673 | __writeback_single_inode(inode, wb, &wbc); | 672 | __writeback_single_inode(inode, &wbc); |
674 | 673 | ||
675 | work->nr_pages -= write_chunk - wbc.nr_to_write; | 674 | work->nr_pages -= write_chunk - wbc.nr_to_write; |
676 | wrote += write_chunk - wbc.nr_to_write; | 675 | wrote += write_chunk - wbc.nr_to_write; |