Skip to content

Commit 91c6660

Browse files
author
Paul Dagnelie
committed
fixup rebase
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
1 parent c539255 commit 91c6660

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

include/sys/metaslab.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ uint64_t metaslab_largest_allocatable(metaslab_t *);
8383
int metaslab_alloc(spa_t *, metaslab_class_t *, uint64_t, blkptr_t *, int,
8484
uint64_t, blkptr_t *, int, zio_alloc_list_t *, int, const void *);
8585
int metaslab_alloc_range(spa_t *, metaslab_class_t *, uint64_t, uint64_t,
86-
blkptr_t *, int, uint64_t, blkptr_t *, int, zio_alloc_list_t *, zio_t *,
87-
int, uint64_t *);
86+
blkptr_t *, int, uint64_t, blkptr_t *, int, zio_alloc_list_t *,
87+
int, const void *, uint64_t *);
8888
int metaslab_alloc_dva(spa_t *, metaslab_class_t *, uint64_t,
8989
dva_t *, int, dva_t *, uint64_t, int, zio_alloc_list_t *, int);
9090
void metaslab_free(spa_t *, const blkptr_t *, uint64_t, boolean_t);
@@ -131,8 +131,8 @@ uint64_t metaslab_group_get_space(metaslab_group_t *);
131131
void metaslab_group_histogram_verify(metaslab_group_t *);
132132
uint64_t metaslab_group_fragmentation(metaslab_group_t *);
133133
void metaslab_group_histogram_remove(metaslab_group_t *, metaslab_t *);
134-
void metaslab_group_alloc_increment_all(spa_t *, blkptr_t *, const void *,
135-
int, int);
134+
void metaslab_group_alloc_increment_all(spa_t *, blkptr_t *, int, int,
135+
uint64_t, const void *);
136136
void metaslab_group_alloc_decrement(spa_t *, uint64_t, int, int, uint64_t,
137137
const void *);
138138
void metaslab_recalculate_weight_and_sort(metaslab_t *);

module/zfs/metaslab.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4759,13 +4759,13 @@ metaslab_group_alloc_increment(spa_t *spa, uint64_t vdev, int allocator,
47594759
}
47604760

47614761
void
4762-
metaslab_group_alloc_increment_all(spa_t *spa, blkptr_t *bp, const void *tag,
4763-
int flags, int allocator)
4762+
metaslab_group_alloc_increment_all(spa_t *spa, blkptr_t *bp, int allocator,
4763+
int flags, uint64_t psize, const void *tag)
47644764
{
47654765
for (int d = 0; d < BP_GET_NDVAS(bp); d++) {
47664766
uint64_t vdev = DVA_GET_VDEV(&bp->blk_dva[d]);
4767-
metaslab_group_alloc_increment(spa, vdev, tag, flags,
4768-
allocator);
4767+
metaslab_group_alloc_increment(spa, vdev, allocator, flags,
4768+
psize, tag);
47694769
}
47704770
}
47714771

@@ -5925,14 +5925,14 @@ metaslab_alloc(spa_t *spa, metaslab_class_t *mc, uint64_t psize, blkptr_t *bp,
59255925
zio_alloc_list_t *zal, int allocator, const void *tag)
59265926
{
59275927
return (metaslab_alloc_range(spa, mc, psize, psize, bp, ndvas, txg,
5928-
hintbp, flags, zal, zio, allocator, NULL));
5928+
hintbp, flags, zal, allocator, tag, NULL));
59295929
}
59305930

59315931
int
59325932
metaslab_alloc_range(spa_t *spa, metaslab_class_t *mc, uint64_t psize,
59335933
uint64_t max_psize, blkptr_t *bp, int ndvas, uint64_t txg,
59345934
blkptr_t *hintbp, int flags, zio_alloc_list_t *zal,
5935-
int allocator, zio_t *zio, uint64_t *actual_psize)
5935+
int allocator, const void *tag, uint64_t *actual_psize)
59365936
{
59375937
dva_t *dva = bp->blk_dva;
59385938
dva_t *hintdva = (hintbp != NULL) ? hintbp->blk_dva : NULL;

module/zfs/zio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3252,8 +3252,8 @@ zio_write_gang_block(zio_t *pio, metaslab_class_t *mc)
32523252
zio_gang_inherit_allocator(zio, cio);
32533253
if (allocated) {
32543254
metaslab_trace_move(&cio_list, &cio->io_alloc_list);
3255-
metaslab_group_alloc_increment_all(spa, bp, cio, flags,
3256-
zio->io_allocator);
3255+
metaslab_group_alloc_increment_all(spa, bp,
3256+
zio->io_allocator, flags, psize, cio);
32573257
}
32583258
/*
32593259
* We do not reserve for the child writes, since we already

tests/zfs-tests/tests/functional/gang_blocks/gang_blocks_001_pos.ksh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set_tunable32 METASLAB_FORCE_GANGING_PCT 100
4040
path="${mountpoint}/file"
4141
log_must dd if=/dev/urandom of=$path bs=128k count=1
4242
log_must zpool sync $TESTPOOL
43-
first_block=$(get_first_block $TESTPOOL/$TESTFS file)
43+
first_block=$(get_first_block_dva $TESTPOOL/$TESTFS file)
4444
leaves=$(read_gang_header $TESTPOOL $first_block 200 | grep -v hole | wc -l)
4545
[[ "$leaves" -gt 1 ]] || log_fail "Only one leaf in gang block, should not be possible"
4646

0 commit comments

Comments
 (0)