aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index cb04a70eb7e8..b2faad3e8791 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -111,6 +111,9 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
111 continue; 111 continue;
112 fi = btrfs_item_ptr(buf_leaf, i, 112 fi = btrfs_item_ptr(buf_leaf, i,
113 struct btrfs_file_extent_item); 113 struct btrfs_file_extent_item);
114 if (btrfs_file_extent_type(fi) ==
115 BTRFS_FILE_EXTENT_INLINE)
116 continue;
114 ret = btrfs_inc_extent_ref(trans, root, 117 ret = btrfs_inc_extent_ref(trans, root,
115 btrfs_file_extent_disk_blocknr(fi), 118 btrfs_file_extent_disk_blocknr(fi),
116 btrfs_file_extent_disk_num_blocks(fi)); 119 btrfs_file_extent_disk_num_blocks(fi));
@@ -539,6 +542,8 @@ static int drop_leaf_ref(struct btrfs_trans_handle *trans,
539 if (btrfs_disk_key_type(key) != BTRFS_EXTENT_DATA_KEY) 542 if (btrfs_disk_key_type(key) != BTRFS_EXTENT_DATA_KEY)
540 continue; 543 continue;
541 fi = btrfs_item_ptr(leaf, i, struct btrfs_file_extent_item); 544 fi = btrfs_item_ptr(leaf, i, struct btrfs_file_extent_item);
545 if (btrfs_file_extent_type(fi) == BTRFS_FILE_EXTENT_INLINE)
546 continue;
542 /* 547 /*
543 * FIXME make sure to insert a trans record that 548 * FIXME make sure to insert a trans record that
544 * repeats the snapshot del on crash 549 * repeats the snapshot del on crash