Btrfs: add a new "type" field into the block reservation structure
[linux-2.6-block.git] / fs / btrfs / file.c
index a50e98733e28571f1fb03fff2775ca947695999c..a9d7815cf58e5d4d1a23beeb158b88a42e4a9dc2 100644 (file)
@@ -1874,7 +1874,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len)
                goto out;
        }
 
-       rsv = btrfs_alloc_block_rsv(root);
+       rsv = btrfs_alloc_block_rsv(root, BTRFS_BLOCK_RSV_TEMP);
        if (!rsv) {
                ret = -ENOMEM;
                goto out_free;