diff options
author | David Sterba <dsterba@suse.com> | 2017-02-10 13:33:41 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 06:03:53 -0500 |
commit | 3d4b9496e87fb96d25f9c995a7b965c1535de6b9 (patch) | |
tree | dfdffdcc9858e22da20f52b481b153009d2128f6 | |
parent | c2df8bb43f750b5522151fa41d28251d39322701 (diff) |
btrfs: remove unused parameter from update_nr_written
The logic has been updated in "Btrfs: make mapping->writeback_index
point to the last written page" (a91326679f2a0a4c2) and page is not
needed anymore.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/extent_io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 82cbdc253546..a546495fc18e 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -3201,7 +3201,7 @@ int extent_read_full_page(struct extent_io_tree *tree, struct page *page, | |||
3201 | return ret; | 3201 | return ret; |
3202 | } | 3202 | } |
3203 | 3203 | ||
3204 | static void update_nr_written(struct page *page, struct writeback_control *wbc, | 3204 | static void update_nr_written(struct writeback_control *wbc, |
3205 | unsigned long nr_written) | 3205 | unsigned long nr_written) |
3206 | { | 3206 | { |
3207 | wbc->nr_to_write -= nr_written; | 3207 | wbc->nr_to_write -= nr_written; |
@@ -3339,7 +3339,7 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode, | |||
3339 | else | 3339 | else |
3340 | redirty_page_for_writepage(wbc, page); | 3340 | redirty_page_for_writepage(wbc, page); |
3341 | 3341 | ||
3342 | update_nr_written(page, wbc, nr_written); | 3342 | update_nr_written(wbc, nr_written); |
3343 | unlock_page(page); | 3343 | unlock_page(page); |
3344 | return 1; | 3344 | return 1; |
3345 | } | 3345 | } |
@@ -3349,7 +3349,7 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode, | |||
3349 | * we don't want to touch the inode after unlocking the page, | 3349 | * we don't want to touch the inode after unlocking the page, |
3350 | * so we update the mapping writeback index now | 3350 | * so we update the mapping writeback index now |
3351 | */ | 3351 | */ |
3352 | update_nr_written(page, wbc, nr_written + 1); | 3352 | update_nr_written(wbc, nr_written + 1); |
3353 | 3353 | ||
3354 | end = page_end; | 3354 | end = page_end; |
3355 | if (i_size <= start) { | 3355 | if (i_size <= start) { |
@@ -3759,7 +3759,7 @@ static noinline_for_stack int write_one_eb(struct extent_buffer *eb, | |||
3759 | break; | 3759 | break; |
3760 | } | 3760 | } |
3761 | offset += PAGE_SIZE; | 3761 | offset += PAGE_SIZE; |
3762 | update_nr_written(p, wbc, 1); | 3762 | update_nr_written(wbc, 1); |
3763 | unlock_page(p); | 3763 | unlock_page(p); |
3764 | } | 3764 | } |
3765 | 3765 | ||