]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: factor out common scrub_stripe constraints
authorDavid Sterba <dsterba@suse.com>
Thu, 28 Nov 2019 14:37:46 +0000 (15:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:06 +0000 (15:19 +0200)
commit7735cd755b590f34a2b019a0a980dd56493a4d65
tree2e8c994d5f3cdca98006da92dce96404bbfbe64d
parent1aeb6b563aea18cd55c73cf666d1d3245a00f08c
btrfs: scrub: factor out common scrub_stripe constraints

There are common values set for the stripe constraints, some of them
are already factored out. Do that for increment and mirror_num as well.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c