OSDN Git Service

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@kernel.org>
Wed, 23 Nov 2016 20:11:23 +0000 (12:11 -0800)
commitf46e8809e88d113ba096bcfc772b5182ce00b941
tree151d17ad8ea95d314f61fef301f3db93ed3a28e5
parent178053e2f1f9ccdb61ff6c2bd8644b53fc98e72e
f2fs: Reset sequential zones on zoned block devices

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