mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
btrfs scrub: use int for mirror_num, not u64
the rest of the code uses int mirror_num, and so should scrub Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
This commit is contained in:
parent
8ddc7d9cd0
commit
e12fa9cd39
1 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix);
|
|||
struct scrub_page {
|
||||
u64 flags; /* extent flags */
|
||||
u64 generation;
|
||||
u64 mirror_num;
|
||||
int mirror_num;
|
||||
int have_csum;
|
||||
u8 csum[BTRFS_CSUM_SIZE];
|
||||
};
|
||||
|
@ -776,7 +776,7 @@ static int scrub_submit(struct scrub_dev *sdev)
|
|||
}
|
||||
|
||||
static int scrub_page(struct scrub_dev *sdev, u64 logical, u64 len,
|
||||
u64 physical, u64 flags, u64 gen, u64 mirror_num,
|
||||
u64 physical, u64 flags, u64 gen, int mirror_num,
|
||||
u8 *csum, int force)
|
||||
{
|
||||
struct scrub_bio *sbio;
|
||||
|
@ -873,7 +873,7 @@ static int scrub_find_csum(struct scrub_dev *sdev, u64 logical, u64 len,
|
|||
|
||||
/* scrub extent tries to collect up to 64 kB for each bio */
|
||||
static int scrub_extent(struct scrub_dev *sdev, u64 logical, u64 len,
|
||||
u64 physical, u64 flags, u64 gen, u64 mirror_num)
|
||||
u64 physical, u64 flags, u64 gen, int mirror_num)
|
||||
{
|
||||
int ret;
|
||||
u8 csum[BTRFS_CSUM_SIZE];
|
||||
|
@ -919,7 +919,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_dev *sdev,
|
|||
u64 physical;
|
||||
u64 logical;
|
||||
u64 generation;
|
||||
u64 mirror_num;
|
||||
int mirror_num;
|
||||
|
||||
u64 increment = map->stripe_len;
|
||||
u64 offset;
|
||||
|
|
Loading…
Reference in a new issue