zonefs: introduce helper for zone management
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Fri, 11 Sep 2020 08:56:48 +0000 (17:56 +0900)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 15 Sep 2020 09:32:40 +0000 (18:32 +0900)
commit5498d5f93210ab4c55cd191473c8f4a59cc68e8e
tree847b02713bf6ba9a6aad67764b3fc690a3e944d5
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
zonefs: introduce helper for zone management

Introduce a helper function for sending zone management commands to the
block device.

As zone management commands can change a zone write pointer position
reflected in the size of the zone file, this function expects the truncate
mutex to be held.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
fs/zonefs/super.c