OSDN Git Service

btrfs: lift errors from add_extent_changeset to the callers
[uclinux-h8/linux.git] / fs / btrfs / inode-map.c
index 022b193..9409dcc 100644 (file)
@@ -500,12 +500,12 @@ again:
        ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc,
                                              prealloc, prealloc, &alloc_hint);
        if (ret) {
-               btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc);
+               btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc, true);
                goto out_put;
        }
 
        ret = btrfs_write_out_ino_cache(root, trans, path, inode);
-       btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc);
+       btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc, false);
 out_put:
        iput(inode);
 out_release: