btrfs: scrub
[deliverable/linux.git] / fs / btrfs / transaction.c
index c571734d5e5a802ea73a0c6458dd41c0b2e56659..37c2302a08d44bf8430930085d0b2fcbf5e1b1e9 100644 (file)
@@ -1321,6 +1321,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
 
        WARN_ON(cur_trans != trans->transaction);
 
+       btrfs_scrub_pause(root);
        /* btrfs_commit_tree_roots is responsible for getting the
         * various roots consistent with each other.  Every pointer
         * in the tree of tree roots has to point to the most up to date
@@ -1405,6 +1406,8 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
 
        mutex_unlock(&root->fs_info->trans_mutex);
 
+       btrfs_scrub_continue(root);
+
        if (current->journal_info == trans)
                current->journal_info = NULL;
 
This page took 0.032202 seconds and 5 git commands to generate.