diff options
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index be3efc4f64f4..401b6c6248ae 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -63,6 +63,7 @@ int writeback_in_progress(struct backing_dev_info *bdi) | |||
63 | { | 63 | { |
64 | return test_bit(BDI_writeback_running, &bdi->state); | 64 | return test_bit(BDI_writeback_running, &bdi->state); |
65 | } | 65 | } |
66 | EXPORT_SYMBOL(writeback_in_progress); | ||
66 | 67 | ||
67 | static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) | 68 | static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) |
68 | { | 69 | { |
@@ -438,8 +439,7 @@ static void requeue_inode(struct inode *inode, struct bdi_writeback *wb, | |||
438 | * 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. |
439 | */ | 440 | */ |
440 | static int | 441 | static int |
441 | __writeback_single_inode(struct inode *inode, struct bdi_writeback *wb, | 442 | __writeback_single_inode(struct inode *inode, struct writeback_control *wbc) |
442 | struct writeback_control *wbc) | ||
443 | { | 443 | { |
444 | struct address_space *mapping = inode->i_mapping; | 444 | struct address_space *mapping = inode->i_mapping; |
445 | long nr_to_write = wbc->nr_to_write; | 445 | long nr_to_write = wbc->nr_to_write; |
@@ -526,7 +526,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb, | |||
526 | inode->i_state |= I_SYNC; | 526 | inode->i_state |= I_SYNC; |
527 | spin_unlock(&inode->i_lock); | 527 | spin_unlock(&inode->i_lock); |
528 | 528 | ||
529 | ret = __writeback_single_inode(inode, wb, wbc); | 529 | ret = __writeback_single_inode(inode, wbc); |
530 | 530 | ||
531 | spin_lock(&wb->list_lock); | 531 | spin_lock(&wb->list_lock); |
532 | spin_lock(&inode->i_lock); | 532 | spin_lock(&inode->i_lock); |
@@ -577,10 +577,6 @@ static long writeback_chunk_size(struct backing_dev_info *bdi, | |||
577 | /* | 577 | /* |
578 | * Write a portion of b_io inodes which belong to @sb. | 578 | * Write a portion of b_io inodes which belong to @sb. |
579 | * | 579 | * |
580 | * If @only_this_sb is true, then find and write all such | ||
581 | * inodes. Otherwise write only ones which go sequentially | ||
582 | * in reverse order. | ||
583 | * | ||
584 | * Return the number of pages and/or inodes written. | 580 | * Return the number of pages and/or inodes written. |
585 | */ | 581 | */ |
586 | static long writeback_sb_inodes(struct super_block *sb, | 582 | static long writeback_sb_inodes(struct super_block *sb, |
@@ -673,7 +669,7 @@ static long writeback_sb_inodes(struct super_block *sb, | |||
673 | * 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 |
674 | * evict_inode() will wait so the inode cannot be freed. | 670 | * evict_inode() will wait so the inode cannot be freed. |
675 | */ | 671 | */ |
676 | __writeback_single_inode(inode, wb, &wbc); | 672 | __writeback_single_inode(inode, &wbc); |
677 | 673 | ||
678 | work->nr_pages -= write_chunk - wbc.nr_to_write; | 674 | work->nr_pages -= write_chunk - wbc.nr_to_write; |
679 | wrote += write_chunk - wbc.nr_to_write; | 675 | wrote += write_chunk - wbc.nr_to_write; |