zonefs: provide no-lock zonefs_io_error variant
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Fri, 11 Sep 2020 08:56:49 +0000 (17:56 +0900)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 15 Sep 2020 09:32:48 +0000 (18:32 +0900)
commit48d546a8dad4c09745d464e12b95f21c773bff39
treee5823579e95010197fb38a5a6de47b99d58b03bc
parent5498d5f93210ab4c55cd191473c8f4a59cc68e8e
zonefs: provide no-lock zonefs_io_error variant

Subsequent patches need to call zonefs_io_error() with the i_truncate_mutex
already held, so factor out the body of zonefs_io_error() into
__zonefs_io_error() which can be called from with the i_truncate_mutex
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