aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2016-10-28 17:45:02 +0900
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:23 +0200
commitb5bd8ff05e4ab8d83e34b1da9da6c2f20d980f3c (patch)
tree746e248fdbe6fc07f460a51c9959717c83cb816e
parentb4ddd92ea8e2ed2842b66048c081970043d38a3e (diff)
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 <damien.lemoal@wdc.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 0a8ccb24e..2fb584ead 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -407,7 +407,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");