Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128583
b: refs/heads/master
c: e52ec0e
h: refs/heads/master
i:
  128581: bbc303a
  128579: b57630a
  128575: cd0dc58
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 4e75686 commit 4bc2f29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: edbd8d4efe4ddaf29a175ae504e2c9a05a96ebee
refs/heads/master: e52ec0eb62e76ea584c8438ef92933e9b815db80
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,11 +1630,11 @@ int btrfs_alloc_extent(struct btrfs_trans_handle *trans,
struct btrfs_path *path;

btrfs_set_stack_extent_refs(&extent_item, 1);

#if 0
new_hint = max(hint_byte, 16ULL * 1024 * 1024 * 1024);
if (new_hint < btrfs_super_total_bytes(&info->super_copy))
hint_byte = new_hint;

#endif
WARN_ON(num_bytes < root->sectorsize);
ret = find_free_extent(trans, root, num_bytes, empty_size,
search_start, search_end, hint_byte, ins,
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ void btrfs_read_locked_inode(struct inode *inode)
BTRFS_I(inode)->block_group = btrfs_lookup_block_group(root->fs_info,
alloc_group_block);

if (!BTRFS_I(inode)->block_group) {
BTRFS_I(inode)->block_group = btrfs_find_block_group(root,
NULL, 0, 0, 0);
}
btrfs_free_path(path);
inode_item = NULL;

Expand Down

0 comments on commit 4bc2f29

Please sign in to comment.