Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128734
b: refs/heads/master
c: ad5bd91
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent dd15bc6 commit 92f324d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 4575c9cceeca2f51c50536850e15e1dc5187f3d9
refs/heads/master: ad5bd91ecee2b687071da00094564fd075f934ee
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
else
min_free = calc_size;

/* we add 1MB because we never use the first 1MB of the device */
min_free += 1024 * 1024;

/* build a private list of devices we will allocate from */
while(index < num_stripes) {
device = list_entry(cur, struct btrfs_device, dev_list);
Expand Down

0 comments on commit 92f324d

Please sign in to comment.