Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128369
b: refs/heads/master
c: 28b8bb9
h: refs/heads/master
i:
  128367: 12ad5f4
v: v3
  • Loading branch information
Chris Mason authored and David Woodhouse committed Apr 27, 2007
1 parent 5e337e9 commit c838176
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd1bc4653dc37f6390f4d6df4f987044c64f700b
refs/heads/master: 28b8bb9e001aa1c4abdd10a8e36972658237fe43
3 changes: 0 additions & 3 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ struct buffer_head *btrfs_find_tree_block(struct btrfs_root *root, u64 blocknr)
} while (bh != head);
out_unlock:
unlock_page(page);
if (ret) {
touch_buffer(ret);
}
page_cache_release(page);
return ret;
}
Expand Down
7 changes: 5 additions & 2 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, struct
clear_radix_bit(pinned_radix, gang[i]);
}
}
root->fs_info->block_group_cache = NULL;
if (root->fs_info->block_group_cache) {
root->fs_info->block_group_cache->last_alloc =
root->fs_info->block_group_cache->first_free;
}
return 0;
}

Expand Down Expand Up @@ -578,7 +581,7 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
if (last_block < search_start)
last_block = search_start;
hole_size = key.objectid - last_block;
if (hole_size > num_blocks) {
if (hole_size >= num_blocks) {
ins->objectid = last_block;
ins->offset = hole_size;
goto check_pending;
Expand Down

0 comments on commit c838176

Please sign in to comment.