zonefs: prevent use of seq files as swap file
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 15 Mar 2021 03:43:55 +0000 (12:43 +0900)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 16 Mar 2021 08:38:35 +0000 (17:38 +0900)
commit1601ea068b886da1f8f8d4e18b9403e9e24adef6
tree388156bc65ac5c0168b7e1a10f8a383f39576247
parent1e28eed17697bcf343c6743f0028cc3b5dd88bf0
zonefs: prevent use of seq files as swap file

The sequential write constraint of sequential zone file prevent their
use as swap files. Only allow conventional zone files to be used as swap
files.

Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system")
Cc: <stable@vger.kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
fs/zonefs/super.c