Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128732
b: refs/heads/master
c: 9ad6b7b
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 6246454 commit 67c233b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0afbaf8c8216a0de64b55c2d455de2b6c9dde5eb
refs/heads/master: 9ad6b7bc2e00ba02f915cffd5b6bcd6564bb2c75
12 changes: 12 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,12 @@ static void btree_invalidatepage(struct page *page, unsigned long offset)
tree = &BTRFS_I(page->mapping->host)->io_tree;
extent_invalidatepage(tree, page, offset);
btree_releasepage(page, GFP_NOFS);
if (PagePrivate(page)) {
printk("2invalidate page cleaning up after releasepage\n");
ClearPagePrivate(page);
set_page_private(page, 0);
page_cache_release(page);
}
}

#if 0
Expand Down Expand Up @@ -1484,6 +1490,8 @@ int close_ctree(struct btrfs_root *root)
write_ctree_super(NULL, root);
mutex_unlock(&fs_info->fs_mutex);

btrfs_transaction_flush_work(root);

if (fs_info->delalloc_bytes) {
printk("btrfs: at unmount delalloc count %Lu\n",
fs_info->delalloc_bytes);
Expand Down Expand Up @@ -1514,7 +1522,11 @@ int close_ctree(struct btrfs_root *root)
extent_io_tree_empty_lru(&fs_info->extent_ins);
extent_io_tree_empty_lru(&BTRFS_I(fs_info->btree_inode)->io_tree);

flush_workqueue(end_io_workqueue);
flush_workqueue(async_submit_workqueue);

truncate_inode_pages(fs_info->btree_inode->i_mapping, 0);

flush_workqueue(end_io_workqueue);
destroy_workqueue(end_io_workqueue);

Expand Down
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2524,6 +2524,12 @@ static void btrfs_invalidatepage(struct page *page, unsigned long offset)
tree = &BTRFS_I(page->mapping->host)->io_tree;
extent_invalidatepage(tree, page, offset);
btrfs_releasepage(page, GFP_NOFS);
if (PagePrivate(page)) {
printk("invalidate page cleaning up after releasepage\n");
ClearPagePrivate(page);
set_page_private(page, 0);
page_cache_release(page);
}
}

/*
Expand Down

0 comments on commit 67c233b

Please sign in to comment.