Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128445
b: refs/heads/master
c: e9fe395
h: refs/heads/master
i:
  128443: e6c28d1
v: v3
  • Loading branch information
Yan authored and David Woodhouse committed Aug 29, 2007
1 parent 31a485a commit 047102b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 4b82d6e4a592016ac75e756ca519923e0fc18f00
refs/heads/master: e9fe395e47bef9b948657b788c65cbfbd2433cc4
5 changes: 2 additions & 3 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root,
if (search_start) {
struct btrfs_block_group_cache *shint;
shint = btrfs_lookup_block_group(info, search_start);
if (shint->data == data) {
if (shint && shint->data == data) {
used = btrfs_block_group_used(&shint->item);
if (used + shint->pinned <
div_factor(shint->key.offset, factor)) {
Expand Down Expand Up @@ -1255,8 +1255,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
struct buffer_head *buf;

ret = btrfs_alloc_extent(trans, root, root->root_key.objectid,
1, empty_size, hint,
(unsigned long)-1, &ins, 0);
1, empty_size, hint, (u64)-1, &ins, 0);
if (ret) {
BUG_ON(ret > 0);
return ERR_PTR(ret);
Expand Down

0 comments on commit 047102b

Please sign in to comment.