Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346449
b: refs/heads/master
c: f562146
h: refs/heads/master
i:
  346447: 63ec31a
v: v3
  • Loading branch information
Namjae Jeon authored and Linus Torvalds committed Dec 18, 2012
1 parent cefd685 commit 1bb41e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6920d996e3fee4ac5dcb7d34cb290b6f67bb69d0
refs/heads/master: f562146a3daf6aa0bbf2a1bc4b6b7da031ed5dcd
9 changes: 9 additions & 0 deletions trunk/fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/writeback.h>
#include <linux/log2.h>
#include <linux/hash.h>
#include <linux/blkdev.h>
#include <asm/unaligned.h>
#include "fat.h"

Expand Down Expand Up @@ -1431,6 +1432,14 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
goto out_fail;
}

if (sbi->options.discard) {
struct request_queue *q = bdev_get_queue(sb->s_bdev);
if (!blk_queue_discard(q))
fat_msg(sb, KERN_WARNING,
"mounting with \"discard\" option, but "
"the device does not support discard");
}

return 0;

out_invalid:
Expand Down

0 comments on commit 1bb41e6

Please sign in to comment.