]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: Always enable discard for zoned blocks devices
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 28 Oct 2016 08:45:03 +0000 (17:45 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:11:19 +0000 (12:11 -0800)
commit96ba2decb4241aa2c6b61cfc8489d648769eff99
treedf8121723e1b4442daa2798d4b6b3dcdb1211270
parent0ab0299835738cd407569401da1fef4c97b4419c
f2fs: Always enable discard for zoned blocks devices

Zone write pointer reset acts as discard for zoned block
devices. So if the zoned block device feature is enabled,
always declare that discard is enabled, even if the device
does not actually support the command.
For the same reason, prevent the use the "nodicard" mount
option.

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