Displaying 20 results from an estimated 24 matches for "__btrfs_cow_block".
2013 May 14
1
[PATCH] Btrfs-progs: fix missing recow roots when making btrfs filesystem
..., 26 deletions(-)
diff --git a/mkfs.c b/mkfs.c
index 7ff60e5..9cd93e4 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -151,37 +151,55 @@ static int recow_roots(struct btrfs_trans_handle *trans,
int ret;
struct extent_buffer *tmp;
struct btrfs_fs_info *info = root->fs_info;
+ u64 generation;
- ret = __btrfs_cow_block(trans, info->fs_root, info->fs_root->node,
- NULL, 0, &tmp, 0, 0);
- BUG_ON(ret);
- free_extent_buffer(tmp);
+ generation = btrfs_root_generation(&info->fs_root->root_item);
+ if (generation != trans->transid) {
+ ret = __btrfs_cow_block(trans, info->fs_root,
+ i...
2011 Sep 27
2
high CPU usage and low perf
...801462ba800 ffff880109f9b540 000088002a95eba8
Call Trace:
[<ffffffffa032765e>] ? tree_search_offset+0x18f/0x1b8 [btrfs]
[<ffffffffa02eb745>] ? btrfs_reserve_extent+0xb0/0x190 [btrfs]
[<ffffffffa02ebdfc>] ? btrfs_alloc_free_block+0x22e/0x349 [btrfs]
[<ffffffffa02dea3d>] ? __btrfs_cow_block+0x102/0x31e [btrfs]
[<ffffffffa02ebdfc>] ? btrfs_alloc_free_block+0x22e/0x349 [btrfs]
[<ffffffffa02dea3d>] ? __btrfs_cow_block+0x102/0x31e [btrfs]
[<ffffffffa02dd400>] ? btrfs_set_node_key+0x1a/0x20 [btrfs]
[<ffffffffa02ded5d>] ? btrfs_cow_block+0x104/0x14e [btrfs]
[<...
2013 Nov 27
0
[PATCH] Btrfs-progs: fix the mismatch of extent buffer's space
...-convert.c
index ae10eed..cb6ddd0 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -1634,6 +1634,7 @@ static int init_btrfs(struct btrfs_root *root)
ret = create_subvol(trans, root, BTRFS_DATA_RELOC_TREE_OBJECTID);
BUG_ON(ret);
+ extent_buffer_get(fs_info->csum_root->node);
ret = __btrfs_cow_block(trans, fs_info->csum_root,
fs_info->csum_root->node, NULL, 0, &tmp, 0, 0);
BUG_ON(ret);
diff --git a/extent_io.c b/extent_io.c
index ad07b9c..a127e54 100644
--- a/extent_io.c
+++ b/extent_io.c
@@ -580,7 +580,7 @@ static struct extent_buffer *__alloc_extent_buffer(struct extent_i...
2012 Dec 19
6
HIT WARN_ON WARNING: at fs/btrfs/extent-tree.c:6339 btrfs_alloc_free_block+0x126/0x330 [btrfs]()
Hi all,
Did someone have met this problem before. When doing the tests, I hit
the WARN_ON. Is this log make sense or someone had fixed the problem.
If needed, I can supply the detail log and the testcase source file.
Version: the latest codes at linus git tree.
[ 2140.981293] use_block_rsv: 336 callbacks suppressed
[ 2140.981295] ------------[ cut here ]------------
[ 2140.981308]
2007 Dec 07
1
Oops
...8 00000000
20000000 000000dd 00000000
Dec 7 19:18:38 revo 00000000 00000000 00000000 eb1293e4 b01bf3e7 10006000
00000000 00000000
Dec 7 19:18:38 revo 00000000 da25be70 ee8e1400 eec7c6f4 00000000 000001df
00000000 eb1293e4
Dec 7 19:18:38 revo Call Trace:
Dec 7 19:18:38 revo [<b01bf3e7>] __btrfs_cow_block+0x1c7/0x390
Dec 7 19:18:38 revo [<b01bf726>] btrfs_cow_block+0x176/0x1a0
Dec 7 19:18:38 revo [<b01c1303>] btrfs_search_slot+0x103/0xe70
Dec 7 19:18:38 revo [<b02c5965>] dma_pool_alloc+0x155/0x1f0
Dec 7 19:18:38 revo [<b0121d7b>] enqueue_entity+0x2b/0x60
Dec 7 19:18:38 r...
2012 Dec 17
5
Feeback on RAID1 feature of Btrfs
...+0x7f/0xc0
[ 804.910610] [<ffffffff81057526>] warn_slowpath_fmt+0x46/0x50
[ 804.910619] [<ffffffffa015ff6f>]
__btrfs_abort_transaction+0xdf/0x100 [btrfs]
[ 804.910635] [<ffffffffa01802c0>] ? verify_parent_transid+0x170/0x170
[btrfs]
[ 804.910648] [<ffffffffa016402a>] __btrfs_cow_block+0x48a/0x510 [btrfs]
[ 804.910661] [<ffffffffa0164227>] btrfs_cow_block+0xf7/0x230 [btrfs]
[ 804.910672] [<ffffffffa016752b>] push_leaf_right+0x11b/0x190 [btrfs]
[ 804.910681] [<ffffffffa0167cb1>] split_leaf+0x621/0x740 [btrfs]
[ 804.910690] [<ffffffffa0160d52>] ? lea...
2013 Feb 06
3
btrfs balance -> hang/crash
...fffff810046c7>] dump_trace+0x87/0x2f0
[ 347.237711] [<ffffffff81591682>] dump_stack+0x69/0x6f
[ 347.237716] [<ffffffff8103cb79>] warn_slowpath_common+0x79/0xc0
[ 347.237720] [<ffffffff8122c889>] btrfs_alloc_free_block+0x399/0x3a0
[ 347.237725] [<ffffffff81218617>] __btrfs_cow_block+0x137/0x550
[ 347.237728] [<ffffffff81218baf>] btrfs_cow_block+0xff/0x250
[ 347.237731] [<ffffffff8121d2f1>] btrfs_search_slot+0x421/0x980
[ 347.237735] [<ffffffff8127fa0e>] do_relocation+0x3be/0x510
[ 347.237740] [<ffffffff812839f3>] relocate_tree_blocks+0x5e3/0x610...
2013 Sep 01
0
Unmountable filesystem parent transid verify failed
...mage: ctree.c:787: read_node_slot: Assertion `!(level == 0)'' failed.
Aborted
mount -o ro,recovery fails
# mount -o ro,recovery /dev/sde /DATA
mount: wrong fs type, bad option, bad superblock on /dev/sde,
...
# btrfs-zero-log /dev/sde
eventually fails with :
btrfs-zero-log: ctree.c:342: __btrfs_cow_block: Assertion
`!(btrfs_header_generation(buf) > trans->transid)'' failed.
Aborted
What should I try next?
regards
ronnie sahlberg
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo i...
2012 Jul 07
0
block rsv returned -28
...dump_stack+0x69/0x6f
[ 1105.177871] [<ffffffff8102d9d4>] warn_slowpath_common+0x78/0x8c
[ 1105.177937] [<ffffffffa02fcaf6>] use_block_rsv+0xb8/0x104 [btrfs]
[ 1105.178092] [<ffffffffa02fef88>] btrfs_alloc_free_block+0x29/0x1bd [btrfs]
[ 1105.178236] [<ffffffffa02f17fe>] __btrfs_cow_block+0x10e/0x350 [btrfs]
[ 1105.178338] [<ffffffffa02f1b34>] btrfs_cow_block+0xf4/0x13f [btrfs]
[ 1105.178441] [<ffffffffa02f4753>] btrfs_search_slot+0x230/0x531 [btrfs]
[ 1105.178581] [<ffffffffa0342990>] do_relocation+0x104/0x3fe [btrfs]
[ 1105.179050] [<ffffffffa0342d29>]...
2012 Nov 22
0
raid10 data fs full after degraded mount
...[<ffffffffa0192181>] ? btrfs_alloc_free_block+0xeb/0x2a0 [btrfs]
[ 2898.699687] [<ffffffffa01b76fc>] ? read_extent_buffer_pages+0x1fb/0x247 [btrfs]
[ 2898.699703] [<ffffffffa019ab85>] ? btree_readpage_end_io_hook+0x1d9/0x1d9 [btrfs]
[ 2898.699715] [<ffffffffa0184461>] ? __btrfs_cow_block+0xf2/0x372 [btrfs]
[ 2898.699726] [<ffffffffa018480d>] ? btrfs_cow_block+0xf1/0x141 [btrfs]
[ 2898.699738] [<ffffffffa01873e5>] ? btrfs_search_slot+0x234/0x660 [btrfs]
[ 2898.699752] [<ffffffffa0196aa6>] ? btrfs_lookup_csum+0x64/0x104 [btrfs]
[ 2898.699766] [<ffffffffa01978...
2008 Jan 17
1
Requirements for btrfs
...00000000 00000000
00000000 ffffffff ffffffff
1f3f9000 00000000 f7a91d9b 00000000 00000000
00000000 00000000 00000002
de36da00 dd41a758 de0d5e00 00000001 00004000
00000000 00004000 de36da00
Call Trace:
[<f8d32cfa>] __btrfs_alloc_free_block+0xba/0x290
[btrfs]
[<f8d29984>] __btrfs_cow_block+0x174/0x600 [btrfs]
[<f8d2b58c>] btrfs_realloc_node+0x2cc/0x4f0 [btrfs]
[<f8d42952>] btrfs_defrag_leaves+0x612/0x960 [btrfs]
[<f8d39649>] btrfs_start_transaction+0xc9/0x1e0
[btrfs]
[<f8d3a618>] btrfs_defrag_root+0x68/0xe0 [btrfs]
[<f8d3a703>] btrfs_defrag_dirty_ro...
2013 Jun 05
8
btrfs raid1 on 16TB goes read-only after "btrfs: block rsv returned -28"
...ernel: [<ffffffff810289c8>] ? warn_slowpath_common+0x78/0x8c
kernel: [<ffffffff81028a74>] ? warn_slowpath_fmt+0x45/0x4a
kernel: [<ffffffff81278f2c>] ? ___ratelimit+0xc4/0xd0
kernel: [<ffffffff811e66da>] ? btrfs_alloc_free_block+0xd3/0x29c
kernel: [<ffffffff811d68e5>] ? __btrfs_cow_block+0x136/0x454
kernel: [<ffffffff811f0d47>] ? btrfs_buffer_uptodate+0x40/0x56
kernel: [<ffffffff811d6d8c>] ? btrfs_cow_block+0x132/0x19d
kernel: [<ffffffff811da606>] ? btrfs_search_slot+0x2f5/0x624
kernel: [<ffffffff811dbc5a>] ? btrfs_insert_empty_items+0x5c/0xaf
kernel: [<f...
2011 Sep 10
12
WARNING: at fs/btrfs/inode.c:2193 btrfs_orphan_commit_root+0xb0/0xc0 [btrfs]()
Hi
I am hitting this Warning reproducible, the workload is a ceph osd,
kernel ist 3.1.0-rc5.
Best Regards,
martin
[ 5472.099766] ------------[ cut here ]------------
[ 5472.099833] WARNING: at fs/btrfs/inode.c:2193
btrfs_orphan_commit_root+0xb0/0xc0 [btrfs]()
[ 5472.099838] Hardware name: MS-96B3
[ 5472.099842] Modules linked in: radeon ttm drm_kms_helper drm
i2c_algo_bit psmouse sp5100_tco
2012 Sep 12
2
Deadlock in btrfs-cleaner, related to snapshot deletion
...xcd/0x250 [btrfs]
[ 386.318314] [<ffffffff8107ccd0>] ? add_wait_queue+0x60/0x60
[ 386.318348] [<ffffffffa00dc4f8>] btrfs_init_new_buffer+0x68/0x140 [btrfs]
[ 386.318379] [<ffffffffa00dc66f>] btrfs_alloc_free_block+0x9f/0x220 [btrfs]
[ 386.318408] [<ffffffffa00c83b2>] __btrfs_cow_block+0x122/0x4f0 [btrfs]
[ 386.318415] [<ffffffff8169e00e>] ? _raw_spin_lock+0xe/0x20
[ 386.318443] [<ffffffffa00c887c>] btrfs_cow_block+0xfc/0x220 [btrfs]
[ 386.318472] [<ffffffffa00cc9f8>] btrfs_search_slot+0x368/0x740 [btrfs]
[ 386.318502] [<ffffffffa00d32de>] lookup_i...
2009 Feb 26
2
BUG: Mount/Unmount Loop
...trfs])
[ 121.451396] [<000003e0007164f0>] __btrfs_reserve_extent+0x164/0x314 [btrfs]
[ 121.451489] [<000003e0007184e2>] btrfs_alloc_extent+0x4e/0xc8 [btrfs]
[ 121.451583] [<000003e0007185c8>] btrfs_alloc_free_block+0x6c/0xb0 [btrfs]
[ 121.451676] [<000003e00070841a>] __btrfs_cow_block+0x242/0xa08 [btrfs]
[ 121.451766] [<000003e0007093e4>] btrfs_cow_block+0x220/0x234 [btrfs]
[ 121.451857] [<000003e00072761a>] btrfs_commit_tree_roots+0x6e/0x21c [btrfs]
[ 121.452077] [<000003e000728c56>] btrfs_commit_transaction+0x33a/0x7ac [btrfs]
[ 121.452175] [<00000...
2011 May 31
2
WARNING: at fs/btrfs/extent-tree.c:5695 btrfs_alloc_free_block+0x22c/0x370 [btrfs]()
...May 30 23:25:17 localhost kernel: [17117.213643] [<ffffffff8139ccbc>] ?
schedule+0x5ac/0xd70
May 30 23:25:17 localhost kernel: [17117.213672] [<ffffffffa01e8a1f>] ?
read_extent_buffer+0xcf/0x1e0 [btrfs]
May 30 23:25:17 localhost kernel: [17117.213698] [<ffffffffa01a2853>] ?
__btrfs_cow_block+0x163/0x8d0 [btrfs]
May 30 23:25:17 localhost kernel: [17117.213727] [<ffffffffa01bfc69>] ?
btrfs_buffer_uptodate+0x49/0x70 [btrfs]
May 30 23:25:17 localhost kernel: [17117.213753] [<ffffffffa01a30d9>] ?
btrfs_cow_block+0x119/0x2b0 [btrfs]
May 30 23:25:17 localhost kernel: [1711...
2010 Mar 02
3
2.6.33 high cpu usage
With the ATI bug I was hitting earlier fixed, only my btrfs partition
continues to show high cpu usage for some operations.
Rsync, git pull, git checkout and svn up are typicall operations which
trigger the high cpu usage.
As an example, this perf report is from using git checkout to change to
a new branch; the change needed to checkout 208 files out of about 1600
total files. du(1) reports
2009 May 12
0
[PATCH 1/2] btrfs-progs: mixed back ref support
...btrfs_inc_ref(trans, root, cow, 0);
+ BUG_ON(ret);
+ ret = btrfs_dec_ref(trans, root, buf, 1);
+ BUG_ON(ret);
+ } else {
+ BUG_ON(owner != root->root_key.objectid);
+ BUG_ON(flags & BTRFS_BLOCK_NO_OWNER_REF);
+ }
+ clean_tree_block(trans, root, buf);
+ }
+
+ 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;
struc...
2012 May 27
0
[RFC PATCH] Decrease Metadata Fragment Using A Caterpillar Band Method
...ere are some interesting appeared 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-&...
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