diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index fe5b00986d221b6ee8d972498960effc6920f724..4fc92cf813d8e65a51c0da1d6078ad8c68f9284e 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -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);