nilfs2: add nodiscard mount option
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 5 Jul 2010 05:27:04 +0000 (14:27 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 23 Jul 2010 01:02:12 +0000 (10:02 +0900)
commit802d31775404ee335ca1e97a82e1e706a4c843be
tree3753263ea97748e6c2b01f29fb7f81c19381eb7b
parent773bc4f3b6898634a80a41c72a1f34cb89992dcd
nilfs2: add nodiscard mount option

Nilfs has "discard" mount option which issues discard/TRIM commands to
underlying block device, but it lacks a complementary option and has
no way to disable the feature through remount.

This adds "nodiscard" option to resolve this imbalance.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Documentation/filesystems/nilfs2.txt
fs/nilfs2/super.c