Thread (32 messages) 32 messages, 2 authors, 2021-07-20
STALE1801d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 01/27] btrfs: remove unused parameter @nr_pages in add_ra_bio_pages()

From: Qu Wenruo <hidden>
Date: 2021-07-13 06:15:33
Subsystem: btrfs file system, filesystems (vfs and infrastructure), the rest · Maintainers: Chris Mason, David Sterba, Alexander Viro, Christian Brauner, Linus Torvalds

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 4edfcc3890a5..0d95eed4282c 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -549,7 +549,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;
@@ -645,7 +644,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.32.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help