]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add -o discard option
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Oct 2009 13:24:59 +0000 (09:24 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 14 Oct 2009 14:32:49 +0000 (10:32 -0400)
commitb6c3a7a36f93cd61d3fcf4e038458f44e35d561b
tree392d8d48c4e6676a552230135ad448d522007ece
parentf857450a51f08ae7b2392c87e80fcc913a01f0e6
Btrfs: add -o discard option

Enable discard by default is not a good idea given the the trim speed
of SSD prototypes we've seen, and the carecteristics for many high-end
arrays.  Turn of discards by default and require the -o discard option
to enable them on.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/super.c