OSDN Git Service

btrfs: qgroup: Introduce per-root swapped blocks infrastructure
[tomoyo/tomoyo-test1.git] / fs / btrfs / transaction.c
index fdffe5d..0cc6d8b 100644 (file)
@@ -122,6 +122,7 @@ static noinline void switch_commit_roots(struct btrfs_transaction *trans)
                if (is_fstree(root->root_key.objectid))
                        btrfs_unpin_free_ino(root);
                clear_btree_io_tree(&root->dirty_log_pages);
+               btrfs_qgroup_clean_swapped_blocks(root);
        }
 
        /* We can free old roots now. */