commit | f7039b1d5c32241f87a513e33120db36bf30264d | [log] [tgz] |
---|---|---|
author | Li Dongyang <lidongyang@novell.com> | Thu Mar 24 10:24:28 2011 +0000 |
committer | root <Chris Mason chris.mason@oracle.com> | Mon Mar 28 05:37:47 2011 -0400 |
tree | e911bc79c795fceb3e9a618d8f18571c2a776307 | |
parent | 5378e60734f5b7bfe1b43dc191aaf6131c1befe7 [diff] |
Btrfs: add btrfs_trim_fs() to handle FITRIM We take an free extent out from allocator, trim it, then put it back, but before we trim the block group, we should make sure the block group is cached, so plus a little change to make cache_block_group() run without a transaction. Signed-off-by: Li Dongyang <lidongyang@novell.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>