]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: confirm bug fix actually fires
authorZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 4 Jun 2016 22:33:02 +0000 (18:33 -0400)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 4 Jun 2016 22:33:02 +0000 (18:33 -0400)
fs/btrfs/disk-io.c

index 7e09dac2fed66d114317906220ea0b021ffecd9b..e869a31dbffb7979685ee4f4c637e037df22e4cc 100644 (file)
@@ -3821,10 +3821,12 @@ int btrfs_commit_super(struct btrfs_root *root)
 {
        struct btrfs_trans_handle *trans;
 
-       if (root->fs_info->open)
+       if (root->fs_info->open) {
                mutex_lock(&root->fs_info->cleaner_mutex);
-       else
+       } else {
                ASSERT(mutex_is_locked(&root->fs_info->cleaner_mutex));
+               printk(KERN_ERR "BTRFS: ZYGO: this is the confirmation you are looking for\n");
+       }
         btrfs_run_delayed_iputs(root);
        if (root->fs_info->open)
                mutex_unlock(&root->fs_info->cleaner_mutex);