Whamcloud - gitweb
EX-3002 lipe: lpurge units
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 27 Oct 2021 18:35:46 +0000 (13:35 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Tue, 18 Jan 2022 14:51:41 +0000 (14:51 +0000)
commit08e741bcfc17f3f3de5aa66d8b3c62ee3ce5f275
tree05604b214278ab99512aaff9796ab6c8f58b230c
parent53afaf69828d4fcde640066fbe35ce1ffe9e9463
EX-3002 lipe: lpurge units

Use kb suffixes consistently in lpurge. Add loa_used_kb() to
encapsulate the poor naming otf the loa_blocks member in struct
lipe_object_attrs. Remove some misleading comments. Rename structure
members lo_blocks to lo_used_kb, and ls_*_space to ls_*_used_kb. In
lpurge_purge_slot() rename target to target_kb, and total to
queued_kb. Rename lpurge_free_space() to lpurge_purge().

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Test-Parameters: trivial testlist=hot-pools
Change-Id: I0bbd4f0ea815e3a95eb36d1dc590f03f76eeccd3
Reviewed-on: https://review.whamcloud.com/45388
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46125
lipe/src/lpurge.c