# \[PATCH v3 01/26\] btrfs: remove unused parameter @nr\_pages in add\_ra\_bio\_pages()

- From: Qu Wenruo \<hidden\>
- Date: 2021-09-27 07:22:38 
- List: linux-btrfs
- Page: https://ratatoskr.run/linux-btrfs/2021/09/7546722
- Thread: https://ratatoskr.run/linux-btrfs/2021/09/7546721/t.md

```text
Variable @nr_pages only get increased but never used.
Remove it.

Signed-off-by: Qu Wenruo <redacted>
---
 fs/btrfs/compression.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 2a86a2a1494b..b50927740d27 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -551,7 +551,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;
@@ -647,7 +646,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);
-- 
2.33.0

```
