Skip to content
Commit f7039b1d authored by Li Dongyang's avatar Li Dongyang Committed by root
Browse files

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: default avatarLi Dongyang <lidongyang@novell.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 5378e607
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment