fat: make discard a mount option
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Nov 2009 11:28:52 +0000 (20:28 +0900)
committerOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Sat, 21 Nov 2009 11:36:52 +0000 (20:36 +0900)
commit681142f9211b23e6aa2984259d38b76d7bdc05a8
treecad526094c576b74eb12b0cdb1b497bbb4765128
parenta8a8a669ea13d792296737505adc43ccacf3a648
fat: make discard a mount option

Currently shipping discard capable SSDs and arrays have rather sub-optimal
implementations of the command and can the use of it can cause massive
slowdowns.  Make issueing these commands option as it's already in btrfs
and gfs2.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[hirofumi@mail.parknet.co.jp: tweaks, and add "discard" to fat_show_options]
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
fs/fat/fat.h
fs/fat/fatent.c
fs/fat/inode.c