aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/inode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 5bafaad0053..7b186a5d51b 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -26,6 +26,7 @@
26#include <linux/writeback.h> 26#include <linux/writeback.h>
27#include <linux/log2.h> 27#include <linux/log2.h>
28#include <linux/hash.h> 28#include <linux/hash.h>
29#include <linux/blkdev.h>
29#include <asm/unaligned.h> 30#include <asm/unaligned.h>
30#include "fat.h" 31#include "fat.h"
31 32
@@ -1431,6 +1432,14 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
1431 goto out_fail; 1432 goto out_fail;
1432 } 1433 }
1433 1434
1435 if (sbi->options.discard) {
1436 struct request_queue *q = bdev_get_queue(sb->s_bdev);
1437 if (!blk_queue_discard(q))
1438 fat_msg(sb, KERN_WARNING,
1439 "mounting with \"discard\" option, but "
1440 "the device does not support discard");
1441 }
1442
1434 return 0; 1443 return 0;
1435 1444
1436out_invalid: 1445out_invalid: