zbd: Rename zbd_init()
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 8 May 2020 07:56:43 +0000 (16:56 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 May 2020 13:41:39 +0000 (07:41 -0600)
commit3c1dc34cb10ccc6afbd7f8c3bcb0d32876f90dbd
tree5824a16a7bebc5a2e5ecf79adee24fc82c23387f
parent767d1372a2f045eba88f0520bdbe0a1e250f7f79
zbd: Rename zbd_init()

Clarify the execution context of zbd_init() by renaming this function
to zbd_setup_files() as it is called from the setup_files() function.
While at it, wrap the use of zbd_free_zone_info() into the inline
function zbd_close_file() to avoid an unecessary function call when
closing files that are not zoned block device files of zonemode=zbd
jobs, that is, files that do not have zbd_info initialized.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
filesetup.c
zbd.c
zbd.h