search for: fail_commit

Displaying 1 result from an estimated 1 matches for "fail_commit".

Did you mean: bail_commit
2009 Aug 24
0
[PATCH] Btrfs: proper metadata -ENOSPC handling
...s/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9f4db84..e7acdd5 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -240,12 +240,8 @@ static noinline int create_subvol(struct btrfs_root *root, u64 index = 0; unsigned long nr = 1; - ret = btrfs_check_metadata_free_space(root); - if (ret) - goto fail_commit; - - trans = btrfs_start_transaction(root, 1); - BUG_ON(!trans); + trans = btrfs_start_transaction(root, 4); + BUG_ON(IS_ERR(trans)); ret = btrfs_find_free_objectid(trans, root->fs_info->tree_root, 0, &objectid); @@ -376,10 +372,6 @@ static int create_snapshot(struct btrfs...