f2fs: Reset sequential zones on zoned block devices
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 28 Oct 2016 08:45:06 +0000 (17:45 +0900)
committerJaegeuk Kim <jaegeuk@google.com>
Mon, 25 Sep 2017 22:12:09 +0000 (15:12 -0700)
commit0573aa06787e9f274bcce187687c0e64f0dd69d2
tree210a8077d8ab08a02a961e641f6abe47c5ea3be6
parent018fc18e28098712f19e23712ce24310ba0efdf5
f2fs: Reset sequential zones on zoned block devices

commit f46e8809e88d113ba096bcfc772b5182ce00b941 upstream.

When a zoned block device is mounted, discarding sections
contained in sequential zones must reset the zone write pointer.
For sections contained in conventional zones, the regular discard
is used if the drive supports it.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c