]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
btrfs: remove unused parameter nr_pages in add_ra_bio_pages()
authorQu Wenruo <wqu@suse.com>
Mon, 27 Sep 2021 07:21:43 +0000 (15:21 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 10:00:34 +0000 (12:00 +0200)
BugLink: https://bugs.launchpad.net/bugs/1969857
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/btrfs/compression.c

index 0913ee50e6c340a0fc12088f031d9ac8e041606f..701fbd1b5676628cf4a852be5f8478500d3832ad 100644 (file)
@@ -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);