diff options
author | Christian Schwarz <[email protected]> | 2020-10-09 18:34:54 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-09 09:34:54 -0700 |
commit | 61868bb14d33e9b787ab810533c359888c1c76db (patch) | |
tree | 23a92ed157284525f5372783411fac5ee0f6c5e9 /include/sys/zil.h | |
parent | e9527d44e655fe6fda4f154b396a1e5890abc539 (diff) |
zil_parse: make callback parameters const
Code cleanup, a follow up commit to 4d55ea81.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Co-authored-by: Ryan Moeller <[email protected]>
Signed-off-by: Christian Schwarz <[email protected]>
Closes #11020
Diffstat (limited to 'include/sys/zil.h')
-rw-r--r-- | include/sys/zil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/zil.h b/include/sys/zil.h index 7e61a1330..ec89de38d 100644 --- a/include/sys/zil.h +++ b/include/sys/zil.h @@ -462,9 +462,9 @@ extern zil_stats_t zil_stats; #define ZIL_STAT_BUMP(stat) \ ZIL_STAT_INCR(stat, 1); -typedef int zil_parse_blk_func_t(zilog_t *zilog, blkptr_t *bp, void *arg, +typedef int zil_parse_blk_func_t(zilog_t *zilog, const blkptr_t *bp, void *arg, uint64_t txg); -typedef int zil_parse_lr_func_t(zilog_t *zilog, lr_t *lr, void *arg, +typedef int zil_parse_lr_func_t(zilog_t *zilog, const lr_t *lr, void *arg, uint64_t txg); typedef int zil_replay_func_t(void *arg1, void *arg2, boolean_t byteswap); typedef int zil_get_data_t(void *arg, lr_write_t *lr, char *dbuf, |