linux_dsm_epyc7002/fs/zonefs
Shin'ichiro Kawasaki 834c7ec6af zonefs: Fix file size of zones in full condition
commit 059c01039c0185dbee7ed080f1f2bd22cb1e4dab upstream.

Per ZBC/ZAC/ZNS specifications, write pointers may not have valid values
when zones are in full condition. However, when zonefs mounts a zoned
block device, zonefs refers write pointers to set file size even when
the zones are in full condition. This results in wrong file size. To fix
this, refer maximum file size in place of write pointers for zones in
full condition.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fixes: 8dcc1a9d90 ("fs: New zonefs file system")
Cc: <stable@vger.kernel.org> # 5.6+
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-04 11:38:41 +01:00
..
Kconfig zonefs: select CONFIG_CRC32 2021-01-17 14:17:03 +01:00
Makefile fs: New zonefs file system 2020-02-07 14:39:38 +09:00
super.c zonefs: Fix file size of zones in full condition 2021-03-04 11:38:41 +01:00
zonefs.h zonefs: open/close zone on file open/close 2020-09-15 18:32:52 +09:00