Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155928
b: refs/heads/master
c: f25784b
h: refs/heads/master
v: v3
  • Loading branch information
Yan Zheng authored and Chris Mason committed Jul 28, 2009
1 parent e573146 commit 7affe49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: 68b38550ddbea13d296184bf69edff387618b1d3
refs/heads/master: f25784b35f590c81d5fb8245a8cd45e1afb6f1b2
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,9 @@ int close_ctree(struct btrfs_root *root)
printk(KERN_ERR "btrfs: commit super ret %d\n", ret);
}

fs_info->closing = 2;
smp_mb();

if (fs_info->delalloc_bytes) {
printk(KERN_INFO "btrfs: at unmount delalloc count %llu\n",
(unsigned long long)fs_info->delalloc_bytes);
Expand Down
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,10 @@ static int caching_kthread(void *data)

while (1) {
smp_mb();
if (block_group->fs_info->closing)
if (block_group->fs_info->closing > 1) {
last = (u64)-1;
break;
}

leaf = path->nodes[0];
slot = path->slots[0];
Expand Down

0 comments on commit 7affe49

Please sign in to comment.