search for: alloc_reserved_tree_block

Displaying 8 results from an estimated 8 matches for "alloc_reserved_tree_block".

2012 May 27
0
[RFC PATCH] Decrease Metadata Fragment Using A Caterpillar Band Method
...rfs_key *ins, int ref_mod); +static int alloc_reserved_file_extent_cater(struct btrfs_trans_handle *trans, + struct btrfs_root *root, + u64 parent, u64 root_objectid, + u64 flags, u64 owner, u64 offset, + struct btrfs_key *ins, int ref_mod, u8 cater); static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 parent, u64 root_objectid, u64 flags, struct btrfs_disk_key *key, int level, struct btrfs_key *ins); +static int alloc_reserved_tree_block_cater(struct btrfs_trans_handle *trans, + struct...
2011 Jan 06
0
BUG in /mnt mount kills / mount as well
...6 16:58:36 repository kernel: [ 146.190020] Jan 6 16:58:36 repository kernel: [ 146.190020] Pid: 4476, comm: btrfs-transacti Not tainted 2.6.37-020637rc8-generic #201012290905 P5Q Jan 6 16:58:36 repository kernel: [ 146.190020] RIP: 0010:[<ffffffffa01ebc63>] [<ffffffffa01ebc63>] alloc_reserved_tree_block+0x1b3/0x Jan 6 16:58:36 repository kernel: [ 146.190020] RSP: 0000:ffff8802063b1be0 EFLAGS: 00010282 Jan 6 16:58:36 repository kernel: [ 146.190020] RAX: 00000000ffffffef RBX: ffff8802060c8000 RCX: 0000000000000003 Jan 6 16:58:36 repository kernel: [ 146.190020] RDX: 0000000000000000 RSI: 00...
2013 Mar 15
0
[PATCH] Btrfs-progs: add skinny metadata support to progs V3
...= start; - key.offset = end + 1 - start; - key.type = BTRFS_EXTENT_ITEM_KEY; + if (skinny_metadata) { + key.offset = extent_op->level; + key.type = BTRFS_METADATA_ITEM_KEY; + } else { + key.offset = extent_op->num_bytes; + key.type = BTRFS_EXTENT_ITEM_KEY; + } ret = alloc_reserved_tree_block(trans, extent_root, extent_root->root_key.objectid, trans->transid, extent_op->flags, &extent_op->key, - extent_op->level, &key); + extent_op->level, &key); } else { BUG_ON(1); } @@ -2088,6 +2205,9 @@ static int __...
2013 Oct 07
0
[PATCH] Btrfs: fixup reserved trace points
...); - return ret; } @@ -6706,6 +6707,7 @@ static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans, ins->objectid, ins->offset); BUG(); } + trace_btrfs_reserved_extent_alloc(root, ins->objectid, ins->offset); return ret; } @@ -6778,6 +6780,8 @@ static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, ins->objectid, ins->offset); BUG(); } + + trace_btrfs_reserved_extent_alloc(root, ins->objectid, root->leafsize); return ret; } -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of...
2009 May 12
0
[PATCH 1/2] btrfs-progs: mixed back ref support
...trfs-progs-2/extent-tree.c 2009-05-11 09:41:38.000000000 +0800 @@ -41,13 +41,21 @@ struct pending_extent_op { int type; u64 bytenr; u64 num_bytes; - u64 parent; - u64 orig_parent; - u64 generation; - u64 orig_generation; + u64 flags; + struct btrfs_disk_key key; int level; }; +static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, + struct btrfs_root *root, + u64 root_objectid, u64 generation, + u64 flags, struct btrfs_disk_key *key, + int level, struct btrfs_key *ins); +static int __free_extent(struct btrfs_trans_handle *trans, + struct btrfs_root *root, +...
2012 Feb 13
23
Set nodatacow per file?
Hello, is it possible to set nodatacow on a per-file basis? I couldn''t find anything. If not, wouldn''t that be a great feature to get around the performance issues with VM and database storage? Of course cloning should still cause COW. Thanks, Ralf-Peter -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...ndle *trans, path->leave_spinning = 1; ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, ins, size); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); leaf = path->nodes[0]; extent_item = btrfs_item_ptr(leaf, path->slots[0], @@ -5148,7 +5148,7 @@ static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, path->leave_spinning = 1; ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, ins, size); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); leaf = path->nodes[0]; extent_item = btrfs_item_ptr(leaf, path->slots[0], @@ -5225,28...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all - Here''s my current error handling patchset, against 3.1-rc8. Almost all of this patchset is preparing for actual error handling. Before we start in on that work, I''m trying to reduce the surface we need to worry about. It turns out that there is a ton of code that returns an error code but never actually reports an error. The patchset has grown to 65 patches. 46 of them