mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
f2fs: Suppress discard warning message for zoned block devices
commit 0ab0299835 upstream.
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>
This commit is contained in:
committed by
Amit Pundir
parent
0c0d7e6e2e
commit
b6fa8c2507
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user