mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
Convert enum zio_flag to uint64_t
We ran out of space in enum zio_flag for additional flags. Rather than introduce enum zio_flag2 and then modify a bunch of functions to take a second flags variable, we expand the type to 64 bits via `typedef uint64_t zio_flag_t`. Reviewed-by: Allan Jude <allan@klarasystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <richard.yao@klarasystems.com> Signed-off-by: Allan Jude <allan@klarasystems.com> Co-authored-by: Richard Yao <richard.yao@klarasystems.com> Closes #14086
This commit is contained in:
@@ -934,7 +934,7 @@ do_dump(dmu_send_cookie_t *dscp, struct send_range *range)
|
||||
ASSERT3U(range->start_blkid + 1, ==, range->end_blkid);
|
||||
if (BP_GET_TYPE(bp) == DMU_OT_SA) {
|
||||
arc_flags_t aflags = ARC_FLAG_WAIT;
|
||||
enum zio_flag zioflags = ZIO_FLAG_CANFAIL;
|
||||
zio_flag_t zioflags = ZIO_FLAG_CANFAIL;
|
||||
|
||||
if (dscp->dsc_featureflags & DMU_BACKUP_FEATURE_RAW) {
|
||||
ASSERT(BP_IS_PROTECTED(bp));
|
||||
@@ -1653,7 +1653,7 @@ issue_data_read(struct send_reader_thread_arg *srta, struct send_range *range)
|
||||
!split_large_blocks && !BP_SHOULD_BYTESWAP(bp) &&
|
||||
!BP_IS_EMBEDDED(bp) && !DMU_OT_IS_METADATA(BP_GET_TYPE(bp));
|
||||
|
||||
enum zio_flag zioflags = ZIO_FLAG_CANFAIL;
|
||||
zio_flag_t zioflags = ZIO_FLAG_CANFAIL;
|
||||
|
||||
if (srta->featureflags & DMU_BACKUP_FEATURE_RAW) {
|
||||
zioflags |= ZIO_FLAG_RAW;
|
||||
|
||||
Reference in New Issue
Block a user