The patch titled Subject: fat: notify when discard is not supported has been removed from the -mm tree. Its filename was fat-notify-when-discard-is-not-supported.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Namjae Jeon <linkinjeon@xxxxxxxxx> Subject: fat: notify when discard is not supported Change fatfs so that a warning is emitted when an attempt is made to mount a filesystem with the unsupported `discard' option. ext4 aready does this: http://patchwork.ozlabs.org/patch/192668/ Signed-off-by: Namjae Jeon <linkinjeon@xxxxxxxxx> Signed-off-by: Amit Sahrawat <amit.sahrawat83@xxxxxxxxx> Acked-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/fat/inode.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff -puN fs/fat/inode.c~fat-notify-when-discard-is-not-supported fs/fat/inode.c --- a/fs/fat/inode.c~fat-notify-when-discard-is-not-supported +++ a/fs/fat/inode.c @@ -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" @@ -1431,6 +1432,14 @@ int fat_fill_super(struct super_block *s 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: _ Patches currently in -mm which might be from linkinjeon@xxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html