aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index e9813bd7d556..eaa271484199 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1787,6 +1787,8 @@ out:
1787static int btrfs_writepage_end_io_hook(struct page *page, u64 start, u64 end, 1787static int btrfs_writepage_end_io_hook(struct page *page, u64 start, u64 end,
1788 struct extent_state *state, int uptodate) 1788 struct extent_state *state, int uptodate)
1789{ 1789{
1790 trace_btrfs_writepage_end_io_hook(page, start, end, uptodate);
1791
1790 ClearPagePrivate2(page); 1792 ClearPagePrivate2(page);
1791 return btrfs_finish_ordered_io(page->mapping->host, start, end); 1793 return btrfs_finish_ordered_io(page->mapping->host, start, end);
1792} 1794}
@@ -3718,6 +3720,8 @@ void btrfs_evict_inode(struct inode *inode)
3718 unsigned long nr; 3720 unsigned long nr;
3719 int ret; 3721 int ret;
3720 3722
3723 trace_btrfs_inode_evict(inode);
3724
3721 truncate_inode_pages(&inode->i_data, 0); 3725 truncate_inode_pages(&inode->i_data, 0);
3722 if (inode->i_nlink && (btrfs_root_refs(&root->root_item) != 0 || 3726 if (inode->i_nlink && (btrfs_root_refs(&root->root_item) != 0 ||
3723 root == root->fs_info->tree_root)) 3727 root == root->fs_info->tree_root))
@@ -4510,6 +4514,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
4510 return ERR_PTR(-ENOMEM); 4514 return ERR_PTR(-ENOMEM);
4511 4515
4512 if (dir) { 4516 if (dir) {
4517 trace_btrfs_inode_request(dir);
4518
4513 ret = btrfs_set_inode_index(dir, index); 4519 ret = btrfs_set_inode_index(dir, index);
4514 if (ret) { 4520 if (ret) {
4515 iput(inode); 4521 iput(inode);
@@ -4584,6 +4590,9 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
4584 4590
4585 insert_inode_hash(inode); 4591 insert_inode_hash(inode);
4586 inode_tree_add(inode); 4592 inode_tree_add(inode);
4593
4594 trace_btrfs_inode_new(inode);
4595
4587 return inode; 4596 return inode;
4588fail: 4597fail:
4589 if (dir) 4598 if (dir)
@@ -5261,6 +5270,9 @@ insert:
5261 } 5270 }
5262 write_unlock(&em_tree->lock); 5271 write_unlock(&em_tree->lock);
5263out: 5272out:
5273
5274 trace_btrfs_get_extent(root, em);
5275
5264 if (path) 5276 if (path)
5265 btrfs_free_path(path); 5277 btrfs_free_path(path);
5266 if (trans) { 5278 if (trans) {