]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove redundant mirror_num arg
authorNikolay Borisov <nborisov@suse.com>
Tue, 24 Oct 2017 08:50:39 +0000 (11:50 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:11 +0000 (16:08 +0100)
commita0d49915d039864a490d9fb776eaffaa6b8a376a
tree0a98b11318492f246427c57d34c80e138a14fbbd
parentcbe7dd7052bc2db0dd32536f7cbf880c7d002de8
btrfs: Remove redundant mirror_num arg

The following callpath is always invoked with mirror_num set to 0, so
let's remove it as an argument and directly pass 0 to __do_redpage. No
functional change.

extent_readpages
  __extent_readpages
    __do_contiguous_readpages
      __do_readpage

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c