Re: [PATCH] btrfs: remove unused pages_processed variable

From: David Sterba
Date: Thu Aug 10 2023 - 13:27:03 EST


On Thu, Aug 03, 2023 at 09:45:27AM -0700, Nick Desaulniers wrote:
> On Tue, Jul 25, 2023 at 2:49 PM Nick Desaulniers
> <ndesaulniers@xxxxxxxxxx> wrote:
> >
> > On Mon, Jul 24, 2023 at 02:19:15PM +0200, Arnd Bergmann wrote:
> > > From: Arnd Bergmann <arnd@xxxxxxxx>
> > >
> > > The only user of pages_processed was removed, so it's now a local write-only
> > > variable that can be eliminated as well:
> > >
> > > fs/btrfs/extent_io.c:214:16: error: variable 'pages_processed' set but not used [-Werror,-Wunused-but-set-variable]
> > >
> > > Fixes: 9480af8687200 ("btrfs: split page locking out of __process_pages_contig")
> > > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > > Closes: https://lore.kernel.org/oe-kbuild-all/202307241541.8w52nEnt-lkp@xxxxxxxxx/
> > > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> >
> > Thanks for the patch!
> > Reported-by: kernelci.org bot <bot@xxxxxxxxxxxx>
> > Link: https://lore.kernel.org/llvm/64c00cd4.630a0220.6ad79.0eac@xxxxxxxxxxxxx/
> > Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
>
> Friendly ping the btrfs maintainers to please pick this up.

Fix folded to the original patch, thanks.