aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-19 13:37:44 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-19 13:37:44 -0400
commit236454dfffb64a95ee01c50a215153f5de61c475 (patch)
tree605a8256dc83916c4daac5e709117cdd2fab3d64 /fs/btrfs/extent-tree.c
parenta429e51371eee3c989160c003ee40bc3947c6a76 (diff)
Btrfs: many file_write fixes, inline data
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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