mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
exfat: Fix discard support
Discard support was always unconditionally disabled. Now it is disabled only in the case when blk_queue_discard() returns false. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
This commit is contained in:
parent
50fb5077e8
commit
ff09ff7549
1 changed files with 3 additions and 2 deletions
5
super.c
5
super.c
|
|
@ -741,10 +741,11 @@ static int exfat_fill_super(struct super_block *sb, void *data, int silent)
|
|||
if (opts->discard) {
|
||||
struct request_queue *q = bdev_get_queue(sb->s_bdev);
|
||||
|
||||
if (!blk_queue_discard(q))
|
||||
if (!blk_queue_discard(q)) {
|
||||
exfat_msg(sb, KERN_WARNING,
|
||||
"mounting with \"discard\" option, but the device does not support discard");
|
||||
opts->discard = 0;
|
||||
opts->discard = 0;
|
||||
}
|
||||
}
|
||||
#else
|
||||
struct exfat_sb_info *sbi;
|
||||
|
|
|
|||
Loading…
Reference in a new issue