]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change boolean-like uint8_t fields in znode_t to boolean_t
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 13 Aug 2019 13:58:02 +0000 (22:58 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Aug 2019 13:58:02 +0000 (07:58 -0600)
commita43570c5f3ca11957c23b4e073a520963cd9cfb2
treea6c561ef4243cee81ad4a821ed8d62228b789630
parentfccbd1d6e2e0a95511ad3e1c743b98bf31a6b6c9
Change boolean-like uint8_t fields in znode_t to boolean_t

Given znode_t is an in-core structure, it's more readable to have
them as boolean. Also co-locate existing boolean fields with them
for space efficiency (expecting 8 booleans to be packed/aligned).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #9092
include/sys/zfs_znode.h
module/zfs/zfs_ctldir.c
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c