Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128601
b: refs/heads/master
c: b0331a4
h: refs/heads/master
i:
  128599: ff88def
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 5c6ad60 commit f665cc5
Show file tree
Hide file tree
Showing 2 changed files with 5 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: e2008b61401ecb467a8ce1788fcd2116ae1cfbc1
refs/heads/master: b0331a4c4c339ba7786472b137d6ece9e7f810ec
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
if (!path)
return -ENOMEM;

path->reada = 0;
key.objectid = bytenr;
btrfs_set_key_type(&key, BTRFS_EXTENT_ITEM_KEY);
key.offset = num_bytes;
Expand All @@ -649,6 +650,7 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,

btrfs_release_path(root->fs_info->extent_root, path);

path->reada = 0;
ret = btrfs_insert_extent_backref(trans, root->fs_info->extent_root,
path, bytenr, root_objectid,
ref_generation, owner, owner_offset);
Expand Down Expand Up @@ -680,6 +682,7 @@ static int lookup_extent_ref(struct btrfs_trans_handle *trans,

WARN_ON(num_bytes < root->sectorsize);
path = btrfs_alloc_path();
path->reada = 0;
key.objectid = bytenr;
key.offset = num_bytes;
btrfs_set_key_type(&key, BTRFS_EXTENT_ITEM_KEY);
Expand Down Expand Up @@ -1240,6 +1243,7 @@ static int __free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
if (!path)
return -ENOMEM;

path->reada = 0;
ret = lookup_extent_backref(trans, extent_root, path,
bytenr, root_objectid,
ref_generation,
Expand Down

0 comments on commit f665cc5

Please sign in to comment.