aboutsummaryrefslogtreecommitdiffstats
path: root/META
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2020-12-06 12:53:40 -0500
committerGitHub <[email protected]>2020-12-06 09:53:40 -0800
commit6366ef22404ef1bd0ba26364905e19f2ec7df2a4 (patch)
tree179fbf277c2d7b7dff0a178cb1112166f4ca1395 /META
parenteed2bfe06a60d42b0035edb4b86590eb7edd331d (diff)
Bring consistency to ABD chunk count types.
With both abd_size and abd_nents being uint_t it makes no sense for abd_chunkcnt_for_bytes() to return size_t. Random mix of different types used to count chunks looks bad and makes compiler more difficult to optimize the code. In particular on FreeBSD this change allows compiler to completely optimize out abd_verify_scatter() when built without debug, removing pointless 64-bit division and even more pointless empty loop. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Closes #11279
Diffstat (limited to 'META')
0 files changed, 0 insertions, 0 deletions