Skip to content

Commit e12fa9c

Browse files
author
Jan Schmidt
committed
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 <[email protected]>
1 parent 8ddc7d9 commit e12fa9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/btrfs/scrub.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix);
6565
struct scrub_page {
6666
u64 flags; /* extent flags */
6767
u64 generation;
68-
u64 mirror_num;
68+
int mirror_num;
6969
int have_csum;
7070
u8 csum[BTRFS_CSUM_SIZE];
7171
};
@@ -776,7 +776,7 @@ static int scrub_submit(struct scrub_dev *sdev)
776776
}
777777

778778
static int scrub_page(struct scrub_dev *sdev, u64 logical, u64 len,
779-
u64 physical, u64 flags, u64 gen, u64 mirror_num,
779+
u64 physical, u64 flags, u64 gen, int mirror_num,
780780
u8 *csum, int force)
781781
{
782782
struct scrub_bio *sbio;
@@ -873,7 +873,7 @@ static int scrub_find_csum(struct scrub_dev *sdev, u64 logical, u64 len,
873873

874874
/* scrub extent tries to collect up to 64 kB for each bio */
875875
static int scrub_extent(struct scrub_dev *sdev, u64 logical, u64 len,
876-
u64 physical, u64 flags, u64 gen, u64 mirror_num)
876+
u64 physical, u64 flags, u64 gen, int mirror_num)
877877
{
878878
int ret;
879879
u8 csum[BTRFS_CSUM_SIZE];
@@ -919,7 +919,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_dev *sdev,
919919
u64 physical;
920920
u64 logical;
921921
u64 generation;
922-
u64 mirror_num;
922+
int mirror_num;
923923

924924
u64 increment = map->stripe_len;
925925
u64 offset;

0 commit comments

Comments
 (0)