search for: parent_start

Displaying 5 results from an estimated 5 matches for "parent_start".

2012 May 27
0
[RFC PATCH] Decrease Metadata Fragment Using A Caterpillar Band Method
...on it. signed-off-by WeiFeng Liu 523f28f9b3d9c710cacc31dbba644efb1678cf62 (weifeng.liu@hushmail.com) --- --- a/fs/btrfs/ctree.c 2012-05-21 18:42:51.000000000 +0000 +++ b/fs/btrfs/ctree.c 2012-05-27 19:12:16.865575580 +0000 @@ -444,9 +444,21 @@ static noinline int __btrfs_cow_block(st } else parent_start = 0; - cow = btrfs_alloc_free_block(trans, root, buf->len, parent_start, + if (root->fs_info->cater_factor > 1) { + if (btrfs_cater_factor(btrfs_header_cater(buf)) > 1) + cow = btrfs_grab_cater_block(trans, root, buf, parent_start, + root->root_key.objectid, &d...
2009 May 12
0
[PATCH 1/2] btrfs-progs: mixed back ref support
...+ return 0; +} + int __btrfs_cow_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, @@ -135,26 +208,25 @@ int __btrfs_cow_block(struct btrfs_trans struct extent_buffer **cow_ret, u64 search_start, u64 empty_size) { - u64 parent_start; + u64 generation; struct extent_buffer *cow; - u32 nritems; - int ret = 0; - int different_trans = 0; + struct btrfs_disk_key disk_key; int level; WARN_ON(root->ref_cows && trans->transid != root->fs_info->running_transaction->transid); WARN_ON(root->ref_cows...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...o start it, then try again */ - usleep(250000); + struct timespec delay = {0, 250e6}; nanosleep(&delay, NULL); } upslog_with_errno(LOG_ERR, "Failed to connect to parent and failed to create parent"); @@ -705,7 +705,7 @@ static void sendcmd(const char *cmd, con if (pipefd == PARENT_STARTED) { /* loop back and try to connect now */ - usleep(250000); + struct timespec delay = {0, 250e6}; nanosleep(&delay, NULL); continue; } Index: b/clients/upsmon.c =================================================================== --- a/clients/upsmon.c 2011-05-31 13:36:47.00...
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
...g_eb; + struct inode vfs_inode; }; diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 15cbc2b..4e8c12f 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -989,6 +989,9 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans, btrfs_free_tree_block(trans, root, buf, parent_start, last_ref); } + + buf->root_objectid = 0; + if (unlock_orig) btrfs_tree_unlock(buf); free_extent_buffer_stale(buf); @@ -1672,6 +1675,9 @@ static noinline int balance_level(struct btrfs_trans_handle *trans, path->locks[level] = 0; path->nodes[level] = NULL; clea...
2011 Jun 21
19
[GIT PULL v3] Btrfs: improve write ahead log with sub transaction
I''ve been working to try to improve the write-ahead log''s performance, and I found that the bottleneck addresses in the checksum items, especially when we want to make a random write on a large file, e.g a 4G file. Then a idea for this suggested by Chris is to use sub transaction ids and just to log the part of inode that had changed since either the last log commit or the last