search for: btrfs_finish_ordered_io

Displaying 20 results from an estimated 28 matches for "btrfs_finish_ordered_io".

2013 Aug 29
0
[PATCH] Btrfs: allow partial ordered extent completion
...------ fs/btrfs/ordered-data.c | 13 +++++++--- fs/btrfs/ordered-data.h | 7 +++++ 3 files changed, 62 insertions(+), 18 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 1c86f9d..11b5927 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2562,8 +2562,10 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent) struct extent_state *cached_state = NULL; struct new_sa_defrag_extent *new = NULL; int compress_type = 0; - int ret; + int ret = 0; + u64 logical_len = ordered_extent->len; bool nolock; + bool truncated = false; nolock = btrfs_is_free_spac...
2011 Jan 18
6
BUG while writing to USB btrfs filesystem
...] <0> ffff880231c7dcb0 ffffffffa0220e1c 000000000e19a000 ffff88022ec8ea80 [36853.210013] Call Trace: [36853.210013] [<ffffffff81582fde>] ? mutex_lock+0x1e/0x50 [36853.210013] [<ffffffffa0220e1c>] ? start_transaction+0x1cc/0x270 [btrfs] [36853.210013] [<ffffffffa022495b>] btrfs_finish_ordered_io+0x2eb/0x330 [btrfs] [36853.210013] [<ffffffff81103157>] ? mempool_free_slab+0x17/0x20 [36853.210013] [<ffffffffa02249ba>] btrfs_writepage_end_io_hook+0x1a/0x20 [btrfs] [36853.210013] [<ffffffffa024217b>] end_bio_extent_writepage+0x13b/0x180 [btrfs] [36853.210013] [<ffffffff...
2013 May 07
2
Kernel BUG: __tree_mod_log_rewind
...May 7 02:09:21 caper kernel: [ 726.753353] [<ffffffffa0115a68>] record_extent_backrefs+0x78/0xf0 [btrfs] May 7 02:09:21 caper kernel: [ 726.753462] [<ffffffffa0120a54>] relink_file_extents+0x44/0x180 [btrfs] May 7 02:09:21 caper kernel: [ 726.753571] [<ffffffffa0120cc5>] btrfs_finish_ordered_io+0x135/0x4d0 [btrfs] May 7 02:09:21 caper kernel: [ 726.753681] [<ffffffffa0121075>] finish_ordered_fn+0x15/0x20 [btrfs] May 7 02:09:21 caper kernel: [ 726.753791] [<ffffffffa0140bb0>] worker_loop+0xa0/0x320 [btrfs] May 7 02:09:21 caper kernel: [ 726.753901] [<ffffffffa0140b1...
2013 Jul 03
1
WARNING: at fs/btrfs/backref.c:903 find_parent_nodes+0x616/0x815 [btrfs]()
...2 21:43:27 bkp010 kernel: [ 696.776832] [<ffffffffa06f4514>] ? btrfs_block_rsv_release+0x49/0x4b [btrfs] Jul 2 21:43:27 bkp010 kernel: [ 696.776945] [<ffffffffa0706af9>] btrfs_end_transaction+0xb/0xd [btrfs] Jul 2 21:43:27 bkp010 kernel: [ 696.777056] [<ffffffffa0711224>] btrfs_finish_ordered_io+0x683/0x84e [btrfs] Jul 2 21:43:27 bkp010 kernel: [ 696.777177] [<ffffffff810a3683>] ? mempool_free_slab+0x12/0x14 Jul 2 21:43:27 bkp010 kernel: [ 696.777304] [<ffffffff810a3717>] ? mempool_free+0x72/0x7a Jul 2 21:43:27 bkp010 kernel: [ 696.777449] [<ffffffffa073c357>] ?...
2013 Feb 13
0
Re: Heavy memory leak when using quota groups
...a0540941>] __btrfs_end_transaction+0x81/0x410 [btrfs] > [ 5123.800349] [<ffffffffa052b646>] ? > btrfs_delalloc_release_metadata+0x106/0x180 [btrfs] > [ 5123.800358] [<ffffffffa0540d20>] btrfs_end_transaction+0x10/0x20 [btrfs] > [ 5123.800367] [<ffffffffa054965d>] btrfs_finish_ordered_io+0x10d/0x3d0 [btrfs] > [ 5123.800374] [<ffffffff8106a3a0>] ? cascade+0xa0/0xa0 > [ 5123.800384] [<ffffffffa0549935>] finish_ordered_fn+0x15/0x20 [btrfs] > [ 5123.800394] [<ffffffffa056ac2f>] worker_loop+0x16f/0x5d0 [btrfs] > [ 5123.800401] [<ffffffff810888a8>]...
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
2013 Nov 19
6
[PATCH] Btrfs: fix very slow inode eviction and fs unmount
...EXTENT_LOCKED | EXTENT_DO_ACCOUNTING | + EXTENT_DEFRAG, 1, 0, &cached_state, + GFP_NOFS); /* * whoever cleared the private bit is responsible * for the finish_ordered_io @@ -7428,14 +7490,22 @@ static void btrfs_invalidatepage(struct page *page, unsigned int offset, btrfs_finish_ordered_io(ordered); } btrfs_put_ordered_extent(ordered); - cached_state = NULL; - lock_extent_bits(tree, page_start, page_end, 0, &cached_state); + if (!inode_evicting) { + cached_state = NULL; + lock_extent_bits(tree, page_start, page_end, 0, + &cached_state); + } + } + + if (!ino...
2012 Dec 12
1
kernel BUG at fs/btrfs/extent_io.c:4052 (kernel 3.5.3)
...? clear_extent_bit+0x216/0x380 [btrfs] Dec 11 17:49:04 SANOS1 kernel: [<ffffffffa023d56a>] __btrfs_end_transaction+0x9a/0x350 [btrfs] Dec 11 17:49:04 SANOS1 kernel: [<ffffffffa023d880>] btrfs_end_transaction+0x10/0x20 [btrfs] Dec 11 17:49:04 SANOS1 kernel: [<ffffffffa02433c5>] btrfs_finish_ordered_io+0x175/0x400 [btrfs] Dec 11 17:49:04 SANOS1 kernel: [<ffffffff8104ebd0>] ? usleep_range+0x40/0x40 Dec 11 17:49:04 SANOS1 kernel: [<ffffffffa0243660>] finish_ordered_fn+0x10/0x20 [btrfs] Dec 11 17:49:04 SANOS1 kernel: [<ffffffffa026cd97>] worker_loop+0x157/0x550 [btrfs] Dec 11 17...
2012 Nov 22
0
raid10 data fs full after degraded mount
...898.699752] [<ffffffffa0196aa6>] ? btrfs_lookup_csum+0x64/0x104 [btrfs] [ 2898.699766] [<ffffffffa0197879>] ? btrfs_csum_file_blocks+0x9d/0x4c4 [btrfs] [ 2898.699783] [<ffffffffa01a25c4>] ? add_pending_csums.isra.40+0x33/0x4e [btrfs] [ 2898.699799] [<ffffffffa01a74ae>] ? btrfs_finish_ordered_io+0x1e8/0x303 [btrfs] [ 2898.699816] [<ffffffffa01bfc70>] ? worker_loop+0x175/0x4ad [btrfs] [ 2898.699832] [<ffffffffa01bfafb>] ? btrfs_queue_worker+0x27a/0x27a [btrfs] [ 2898.699846] [<ffffffffa01bfafb>] ? btrfs_queue_worker+0x27a/0x27a [btrfs] [ 2898.699850] [<ffffffff81056...
2014 Sep 16
0
3.14.18 btrfs_set_item_key_safe BUG
...trfs_drop_extents+0x5a8/0xc80 [btrfs] [<ffffffffa0165e00>] ? tree_mod_log_free_eb+0x240/0x260 [btrfs] [<ffffffffa0191d6b>] insert_reserved_file_extent.constprop.60+0xab/0x310 [btrfs] [<ffffffffa018ee10>] ? start_transaction.part.35+0x80/0x540 [btrfs] [<ffffffffa0198565>] btrfs_finish_ordered_io+0x465/0x500 [btrfs] [<ffffffffa0198615>] finish_ordered_fn+0x15/0x20 [btrfs] [<ffffffffa01bd8f0>] worker_loop+0xa0/0x330 [btrfs] [<ffffffffa01bd850>] ? check_pending_worker_creates.isra.1+0xe0/0xe0 [btrfs] [<ffffffff810930c9>] kthread+0xc9/0xe0 [<ffffffff81093000>...
2012 Oct 30
8
Crashes in extent_io.c after "btrfs bad mapping eb" notice
...? kmem_cache_free+0x12/0xbd Oct 30 22:42:36 localhost kernel: [<ffffffff81253c93>] ? btrfs_delayed_refs_qgroup_accounting+0x9e/0xca Oct 30 22:42:36 localhost kernel: [<ffffffff81266723>] ? __btrfs_end_transaction+0x4e/0x293 Oct 30 22:42:36 localhost kernel: [<ffffffff8126bb26>] ? btrfs_finish_ordered_io+0x2e1/0x332 Oct 30 22:42:36 localhost kernel: [<ffffffff8103cfae>] ? run_timer_softirq+0x2c2/0x2c2 Oct 30 22:42:36 localhost kernel: [<ffffffff81286398>] ? worker_loop+0x174/0x4c0 Oct 30 22:42:36 localhost kernel: [<ffffffff81286224>] ? btrfs_queue_worker+0x261/0x261 Oct 30 22:42:...
2011 Sep 28
3
[PATCH] Btrfs: fix missing clear_extent_bit
...p = unlock ? EXTENT_CLEAR_UNLOCK_PAGE : 0; op |= EXTENT_CLEAR_UNLOCK | EXTENT_CLEAR_DELALLOC | - EXTENT_SET_PRIVATE2; + EXTENT_SET_PRIVATE2; extent_clear_unlock_delalloc(inode, &BTRFS_I(inode)->io_tree, start, start + ram_size - 1, @@ -1778,6 +1778,9 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end) ordered_extent->len); BUG_ON(ret); } + clear_extent_bit(io_tree, ordered_extent->file_offset, + ordered_extent->file_offset + ordered_extent->len - 1, + EXTENT_DIRTY, 0, 0, &cached_state, GFP_NOFS); unlock_extent_cached(i...
2009 Feb 16
0
warn_slowpath in clean_tree_block
...ffffffa03e6f0f>] insert_reserved_file_extent+0xd9/0x230 [btrfs] Feb 16 09:02:17 vlad kernel: [<ffffffffa03fa44f>] set_extent_bit+0x220/0x277 [btrfs] Feb 16 09:02:17 vlad kernel: [<ffffffffa03fadce>] lock_extent+0x46/0x95 [btrfs] Feb 16 09:02:17 vlad kernel: [<ffffffffa03e885c>] btrfs_finish_ordered_io+0xfe/0x198 [btrfs] Feb 16 09:02:17 vlad kernel: [<ffffffffa03fb4ff>] end_bio_extent_writepage+0xa9/0x1b1 [btrfs] Feb 16 09:02:17 vlad kernel: [<ffffffffa04023e4>] worker_loop+0x5f/0x15e [btrfs] Feb 16 09:02:17 vlad kernel: [<ffffffffa0402385>] worker_loop+0x0/0x15e [btrfs] Feb 16...
2009 Nov 12
0
[PATCH 03/12] Btrfs: Rewrite btrfs_drop_extents
...= btrfs_drop_extents(trans, root, inode, file_pos, - file_pos + num_bytes, locked_end, - file_pos, &hint, 0); + ret = btrfs_drop_extents(trans, inode, file_pos, file_pos + num_bytes, + &hint, 0); BUG_ON(ret); ins.objectid = inode->i_ino; @@ -1746,7 +1743,7 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end) compressed = 1; if (test_bit(BTRFS_ORDERED_PREALLOC, &ordered_extent->flags)) { BUG_ON(compressed); - ret = btrfs_mark_extent_written(trans, root, inode, + ret = btrfs_mark_extent_written(trans, inode, ordered_extent->file_offset,...
2011 May 31
2
WARNING: at fs/btrfs/extent-tree.c:5695 btrfs_alloc_free_block+0x22c/0x370 [btrfs]()
...el: [17117.213863] [<ffffffff8111ffdc>] ? kmem_cache_alloc+0x15c/0x180 May 30 23:25:17 localhost kernel: [17117.213894] [<ffffffffa01c93a9>] ? insert_reserved_file_extent.constprop.48+0x69/0x230 [btrfs] May 30 23:25:17 localhost kernel: [17117.213926] [<ffffffffa01ca272>] ? btrfs_finish_ordered_io+0x2f2/0x330 [btrfs] May 30 23:25:17 localhost kernel: [17117.213935] [<ffffffff8105d93a>] ? del_timer_sync+0x2a/0x50 May 30 23:25:17 localhost kernel: [17117.213965] [<ffffffffa01e4372>] ? end_bio_extent_writepage+0x122/0x160 [btrfs] May 30 23:25:17 localhost kernel: [17117.2139...
2012 Jan 05
4
[RFC][PATCH 3/3] Btrfs: improve truncation of btrfs
...fs/btrfs/inode.c @@ -88,7 +88,7 @@ static unsigned char btrfs_type_by_mode[S_IFMT >> S_SHIFT] = { }; static int btrfs_setsize(struct inode *inode, loff_t newsize); -static int btrfs_truncate(struct inode *inode); +static int btrfs_truncate(struct inode *inode, loff_t newsize); static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end); static noinline int cow_file_range(struct inode *inode, struct page *locked_page, @@ -2230,7 +2230,7 @@ int btrfs_orphan_cleanup(struct btrfs_root *root) * btrfs_delalloc_reserve_space to catch offenders. */ mutex_lock(&inode->...
2013 Apr 13
0
btrfs crash (and softlockup btrfs-endio-wri)
...04:05:54 datastore01 kernel: [1210991.342201] [<ffffffff8164ad87>] _raw_write_lock+0x17/0x20 Apr 13 04:05:54 datastore01 kernel: [1210991.342230] [<ffffffffa03d1142>] unpin_extent_cache+0x32/0x130 [btrfs] Apr 13 04:05:54 datastore01 kernel: [1210991.342248] [<ffffffffa03c5da3>] btrfs_finish_ordered_io+0x223/0x3f0 [btrfs] Apr 13 04:05:54 datastore01 kernel: [1210991.342256] [<ffffffff8106d7b0>] ? __internal_add_timer+0x130/0x130 Apr 13 04:05:54 datastore01 kernel: [1210991.342274] [<ffffffffa03c5f85>] finish_ordered_fn+0x15/0x20 [btrfs] Apr 13 04:05:54 datastore01 kernel: [1210991.3...
2011 May 11
8
[PATCH 1/4] Btrfs: map the node block when looking for readahead targets
If we have particularly full nodes, we could call btrfs_node_blockptr up to 32 times, which is 32 pairs of kmap/kunmap, which _sucks_. So go ahead and map the extent buffer while we look for readahead targets. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> --- fs/btrfs/ctree.c | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...erved_file_extent(struct btrfs_trans_handle *trans, ret = btrfs_alloc_reserved_file_extent(trans, root, root->root_key.objectid, inode->i_ino, file_pos, &ins); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); btrfs_free_path(path); return 0; @@ -1677,7 +1677,7 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end) btrfs_set_trans_block_group(trans, inode); trans->block_rsv = &root->fs_info->delalloc_block_rsv; ret = btrfs_update_inode(trans, root, inode); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); } goto out; } @@ -1698,7 +1698,7...
2013 Feb 02
5
Oops when mounting btrfs partition
...lhost kernel: [1655047.752869] [<ffffffffa019571f>] __btrfs_end_transaction+0x9f/0x350 [btrfs] Jan 21 16:35:40 localhost kernel: [1655047.752882] [<ffffffffa0195a45>] btrfs_end_transaction+0x15/0x20 [btrfs] Jan 21 16:35:40 localhost kernel: [1655047.752895] [<ffffffffa019b74d>] btrfs_finish_ordered_io+0x17d/0x410 [btrfs] Jan 21 16:35:40 localhost kernel: [1655047.752907] [<ffffffffa019b9f5>] finish_ordered_fn+0x15/0x20 [btrfs] Jan 21 16:35:40 localhost kernel: [1655047.752921] [<ffffffffa01c688f>] worker_loop+0x15f/0x5a0 [btrfs] Jan 21 16:35:40 localhost kernel: [1655047.752923] [...