btrfs: qgroup: simple quota auto hierarchy for nested subvolumes
[linux-2.6-microblaze.git] / fs / btrfs / uuid-tree.c
index 7c7001f..5be74f9 100644 (file)
@@ -124,7 +124,7 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
                 * An item with that type already exists.
                 * Extend the item and store the new subid at the end.
                 */
-               btrfs_extend_item(path, sizeof(subid_le));
+               btrfs_extend_item(trans, path, sizeof(subid_le));
                eb = path->nodes[0];
                slot = path->slots[0];
                offset = btrfs_item_ptr_offset(eb, slot);
@@ -139,7 +139,7 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
        ret = 0;
        subid_le = cpu_to_le64(subid_cpu);
        write_extent_buffer(eb, &subid_le, offset, sizeof(subid_le));
-       btrfs_mark_buffer_dirty(eb);
+       btrfs_mark_buffer_dirty(trans, eb);
 
 out:
        btrfs_free_path(path);
@@ -221,7 +221,7 @@ int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
        move_src = offset + sizeof(subid);
        move_len = item_size - (move_src - btrfs_item_ptr_offset(eb, slot));
        memmove_extent_buffer(eb, move_dst, move_src, move_len);
-       btrfs_truncate_item(path, item_size - sizeof(subid), 1);
+       btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1);
 
 out:
        btrfs_free_path(path);