search for: extent_len

Displaying 3 results from an estimated 3 matches for "extent_len".

Did you mean: extent_fn
2013 Aug 02
2
[PATCH] Btrfs: allow compressed extents to be merged during defragment
...rfs_file_extent_encryption(leaf, fi) || + if (btrfs_file_extent_compression(leaf, fi) != compress) + return 0; + + if (btrfs_file_extent_encryption(leaf, fi) || btrfs_file_extent_other_encoding(leaf, fi)) return 0; @@ -2382,8 +2384,9 @@ again: struct btrfs_file_extent_item); extent_len = btrfs_file_extent_num_bytes(leaf, fi); - if (relink_is_mergable(leaf, fi, new->bytenr) && - extent_len + found_key.offset == start) { + if (extent_len + found_key.offset == start && + relink_is_mergable(leaf, fi, new->bytenr, + new->compress_type))...
2012 Sep 17
13
[PATCH 1/2 v3] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag
We''re going to use this flag EXTENT_DEFRAG to indicate which range belongs to defragment so that we can implement snapshow-aware defrag: We set the EXTENT_DEFRAG flag when dirtying the extents that need defragmented, so later on writeback thread can differentiate between normal writeback and writeback started by defragmentation. This patch is used for the latter one. Originally patch
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...s[0]; fi = btrfs_item_ptr(leaf, path->slots[0], @@ -6877,7 +6877,7 @@ next: leaf->start, root->root_key.objectid, trans->transid, key.objectid); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); btrfs_release_path(root, path); inode_add_bytes(inode, extent_len); @@ -7086,14 +7086,14 @@ static noinline int replace_extents_in_leaf(struct btrfs_trans_handle *trans, leaf->start, root->root_key.objectid, trans->transid, key.objectid); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); ret = btrfs_free_extent(trans, root, byten...