Btrfs: add a new "type" field into the block reservation structure
[linux-2.6-block.git] / fs / btrfs / ioctl.c
index 5543fd562b552c3f0bad4156fb012f280012ab29..e6934de55a8be92e6af04a547db493bfdce627fc 100644 (file)
@@ -516,7 +516,8 @@ static int create_snapshot(struct btrfs_root *root, struct dentry *dentry,
        if (!pending_snapshot)
                return -ENOMEM;
 
-       btrfs_init_block_rsv(&pending_snapshot->block_rsv);
+       btrfs_init_block_rsv(&pending_snapshot->block_rsv,
+                            BTRFS_BLOCK_RSV_TEMP);
        pending_snapshot->dentry = dentry;
        pending_snapshot->root = root;
        pending_snapshot->readonly = readonly;