Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274623
b: refs/heads/master
c: 300e4f8
h: refs/heads/master
i:
  274621: 615a58a
  274619: 58f428a
  274615: 2fdb9c6
  274607: acc4c54
  274591: 4ac8daa
  274559: 1334543
v: v3
  • Loading branch information
Josef Bacik committed Oct 19, 2011
1 parent 0638d94 commit cc2ada4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a33854257764c2ec6337ee0c8ecafb64f8e29e1
refs/heads/master: 300e4f8a56f263797568c95b71c949f9f02e4534
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2543,8 +2543,6 @@ int close_ctree(struct btrfs_root *root)
/* clear out the rbtree of defraggable inodes */
btrfs_run_defrag_inodes(root->fs_info);

btrfs_put_block_group_cache(fs_info);

/*
* Here come 2 situations when btrfs is broken to flip readonly:
*
Expand All @@ -2570,6 +2568,8 @@ int close_ctree(struct btrfs_root *root)
printk(KERN_ERR "btrfs: commit super ret %d\n", ret);
}

btrfs_put_block_group_cache(fs_info);

kthread_stop(root->fs_info->transaction_kthread);
kthread_stop(root->fs_info->cleaner_kthread);

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct inode *lookup_free_space_inode(struct btrfs_root *root,
block_group->disk_cache_state = BTRFS_DC_CLEAR;
}

if (!btrfs_fs_closing(root->fs_info)) {
if (!block_group->iref) {
block_group->inode = igrab(inode);
block_group->iref = 1;
}
Expand Down

0 comments on commit cc2ada4

Please sign in to comment.