mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Remove NOTE(CONSTCOND) and note.h
These were mostly used to annotate do {} while(0)s
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Issue #12201
This commit is contained in:
@@ -644,7 +644,6 @@ arc_sums_t arc_sums;
|
||||
x = x - x / ARCSTAT_F_AVG_FACTOR + \
|
||||
(value) / ARCSTAT_F_AVG_FACTOR; \
|
||||
ARCSTAT(stat) = x; \
|
||||
_NOTE(CONSTCOND) \
|
||||
} while (0)
|
||||
|
||||
kstat_t *arc_ksp;
|
||||
@@ -10738,7 +10737,6 @@ l2arc_log_blk_commit(l2arc_dev_t *dev, zio_t *pio, l2arc_write_callback_t *cb)
|
||||
dev->l2ad_log_blk_payload_asize;
|
||||
l2dhdr->dh_start_lbps[0].lbp_payload_start =
|
||||
dev->l2ad_log_blk_payload_start;
|
||||
_NOTE(CONSTCOND)
|
||||
L2BLK_SET_LSIZE(
|
||||
(&l2dhdr->dh_start_lbps[0])->lbp_prop, sizeof (*lb));
|
||||
L2BLK_SET_PSIZE(
|
||||
|
||||
@@ -570,7 +570,6 @@ ddt_compress(void *src, uchar_t *dst, size_t s_len, size_t d_len)
|
||||
}
|
||||
|
||||
*version = cpfunc;
|
||||
/* CONSTCOND */
|
||||
if (ZFS_HOST_BYTEORDER)
|
||||
*version |= DDT_COMPRESS_BYTEORDER_MASK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user