diff options
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d4714d6cf7d9..53472e27b327 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -2613,7 +2613,7 @@ static inline void ext4_issue_discard(struct super_block *sb, | |||
2613 | trace_ext4_discard_blocks(sb, | 2613 | trace_ext4_discard_blocks(sb, |
2614 | (unsigned long long) discard_block, count); | 2614 | (unsigned long long) discard_block, count); |
2615 | ret = sb_issue_discard(sb, discard_block, count); | 2615 | ret = sb_issue_discard(sb, discard_block, count); |
2616 | if (ret == EOPNOTSUPP) { | 2616 | if (ret == -EOPNOTSUPP) { |
2617 | ext4_warning(sb, "discard not supported, disabling"); | 2617 | ext4_warning(sb, "discard not supported, disabling"); |
2618 | clear_opt(EXT4_SB(sb)->s_mount_opt, DISCARD); | 2618 | clear_opt(EXT4_SB(sb)->s_mount_opt, DISCARD); |
2619 | } | 2619 | } |