From: Damien Le Moal Date: Fri, 28 Oct 2016 08:45:02 +0000 (+0900) Subject: f2fs: Suppress discard warning message for zoned block devices X-Git-Tag: v4.14-rc1~1902^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ab0299835738cd407569401da1fef4c97b4419c;p=platform%2Fkernel%2Flinux-rpi.git f2fs: Suppress discard warning message for zoned block devices For zoned block devices, discard is replaced by zone reset. So do not warn if the device does not supports discard. Signed-off-by: Damien Le Moal Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ea3752f..56b0d2a 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -412,7 +412,7 @@ static int parse_options(struct super_block *sb, char *options) q = bdev_get_queue(sb->s_bdev); if (blk_queue_discard(q)) { set_opt(sbi, DISCARD); - } else { + } else if (!f2fs_sb_mounted_blkzoned(sb)) { f2fs_msg(sb, KERN_WARNING, "mounting with \"discard\" option, but " "the device does not support discard");