diff options
author | Qu Wenruo <wqu@suse.com> | 2021-09-27 10:21:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-20 10:34:04 +0300 |
commit | 6308ab54c8ecf29c7f6bd5b262ef1511f52bee84 (patch) | |
tree | d0159dbc121f4ec74a5a9b7f28affecd234c68f6 /fs | |
parent | ff810f85ed3f3c6709d05d2497a8ef0d1cda2cf7 (diff) | |
download | linux-6308ab54c8ecf29c7f6bd5b262ef1511f52bee84.tar.xz |
btrfs: remove unused parameter nr_pages in add_ra_bio_pages()
commit cd9255be6980012ad54f2d4fd3941bc2586e43e5 upstream.
Variable @nr_pages only gets increased but never used. Remove it.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/compression.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 0913ee50e6c3..701fbd1b5676 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -550,7 +550,6 @@ static noinline int add_ra_bio_pages(struct inode *inode, u64 isize = i_size_read(inode); int ret; struct page *page; - unsigned long nr_pages = 0; struct extent_map *em; struct address_space *mapping = inode->i_mapping; struct extent_map_tree *em_tree; @@ -646,7 +645,6 @@ static noinline int add_ra_bio_pages(struct inode *inode, PAGE_SIZE, 0); if (ret == PAGE_SIZE) { - nr_pages++; put_page(page); } else { unlock_extent(tree, last_offset, end); |