mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +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:
+2
-2
@@ -190,7 +190,7 @@ typedef struct dbuf_dirty_record {
|
||||
uint64_t dr_blkid;
|
||||
abd_t *dr_abd;
|
||||
zio_prop_t dr_props;
|
||||
enum zio_flag dr_flags;
|
||||
zio_flag_t dr_flags;
|
||||
} dll;
|
||||
} dt;
|
||||
} dbuf_dirty_record_t;
|
||||
@@ -380,7 +380,7 @@ void dmu_buf_write_embedded(dmu_buf_t *dbuf, void *data,
|
||||
int uncompressed_size, int compressed_size, int byteorder, dmu_tx_t *tx);
|
||||
|
||||
int dmu_lightweight_write_by_dnode(dnode_t *dn, uint64_t offset, abd_t *abd,
|
||||
const struct zio_prop *zp, enum zio_flag flags, dmu_tx_t *tx);
|
||||
const struct zio_prop *zp, zio_flag_t flags, dmu_tx_t *tx);
|
||||
|
||||
void dmu_buf_redact(dmu_buf_t *dbuf, dmu_tx_t *tx);
|
||||
void dbuf_destroy(dmu_buf_impl_t *db);
|
||||
|
||||
Reference in New Issue
Block a user