search for: btrfs_write_dirty_block_groups

Displaying 13 results from an estimated 13 matches for "btrfs_write_dirty_block_groups".

2009 Jun 03
0
[PATCH] Make sure all dirty blocks are written at commit time
...cache->cache_node); + btrfs_put_block_group(cache); + if (node) { + cache = rb_entry(node, struct btrfs_block_group_cache, + cache_node); + atomic_inc(&cache->count); + } else + cache = NULL; + spin_unlock(&root->fs_info->block_group_cache_lock); + return cache; +} + int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans, struct btrfs_root *root) { - struct btrfs_block_group_cache *cache, *entry; - struct rb_node *n; + struct btrfs_block_group_cache *cache; int err = 0; - int werr = 0; struct btrfs_path *path; u64 last = 0; @@ -2414,39 +2430,35 @@ int btrfs_write_di...
2013 Apr 30
13
WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()
...btrfs] Apr 29 12:59:31 ewzw032 kernel: [ 6275.016559] [<ffffffff81096c40>] ? set_next_entity+0x80/0x90 Apr 29 12:59:31 ewzw032 kernel: [ 6275.016570] [<ffffffffa0107fa5>] btrfs_write_out_cache+0x95/0xf0 [btrfs] Apr 29 12:59:31 ewzw032 kernel: [ 6275.016579] [<ffffffffa00bcc07>] btrfs_write_dirty_block_groups+0x527/0x620 [btrfs] Apr 29 12:59:31 ewzw032 kernel: [ 6275.016588] [<ffffffffa012ed52>] commit_cowonly_roots+0x15a/0x22c [btrfs] Apr 29 12:59:31 ewzw032 kernel: [ 6275.016598] [<ffffffffa00cc4ec>] btrfs_commit_transaction+0x62c/0xb00 [btrfs] Apr 29 12:59:31 ewzw032 kernel: [ 6275.0166...
2013 Aug 27
7
[PATCH] Btrfs: fix deadlock in uuid scan kthread
...rfs] [36700.671698] [<ffffffffa05e3e54>] __btrfs_write_out_cache+0x8c4/0xa80 [btrfs] [36700.671704] [<ffffffffa05e4362>] btrfs_write_out_cache+0xb2/0xf0 [btrfs] [36700.671710] [<ffffffffa05c4441>] ? free_extent_buffer+0x61/0xc0 [btrfs] [36700.671716] [<ffffffffa0594c82>] btrfs_write_dirty_block_groups+0x562/0x650 [btrfs] [36700.671723] [<ffffffffa0610092>] commit_cowonly_roots+0x171/0x24b [btrfs] [36700.671729] [<ffffffffa05a4dde>] btrfs_commit_transaction+0x4fe/0xa10 [btrfs] [36700.671735] [<ffffffffa0610af3>] create_subvol+0x5c0/0x636 [btrfs] [36700.671742] [<ffffffffa...
2012 Sep 17
2
'umount' of multi-device volume hangs until the device is physically un-plugged
...s] [ 469.037942] [<ffffffffa05573ce>] ? run_clustered_refs+0x1be/0xb50 [btrfs] [ 469.037972] [<ffffffffa05a5278>] ? btrfs_find_ref_cluster+0x68/0x170 [btrfs] [ 469.037999] [<ffffffffa059f6e1>] btrfs_write_out_cache+0xb1/0xf0 [btrfs] [ 469.038021] [<ffffffffa055854f>] btrfs_write_dirty_block_groups+0x50f/0x5e0 [btrfs] [ 469.038043] [<ffffffffa0557f01>] ? btrfs_run_delayed_refs+0x1a1/0x2e0 [btrfs] [ 469.038072] [<ffffffffa05c2dd0>] commit_cowonly_roots+0x121/0x1eb [btrfs] [ 469.038099] [<ffffffffa0569aad>] btrfs_commit_transaction+0x59d/0xac0 [btrfs] [ 469.038105] [&l...
2013 Aug 04
2
Unable to unmount filesystem (bug in kernel reported in kern.log)
.../0x950 [btrfs] Aug 4 02:26:06 rohan kernel: [ 3878.951105] [<ffffffff816606be>] ? _raw_spin_lock+0xe/0x20 Aug 4 02:26:06 rohan kernel: [ 3878.951105] [<ffffffffa053b069>] btrfs_write_out_cache+0xb9/0xf0 [btrfs] Aug 4 02:26:06 rohan kernel: [ 3878.951105] [<ffffffffa04f4424>] btrfs_write_dirty_block_groups+0x224/0x280 [btrfs] Aug 4 02:26:06 rohan kernel: [ 3878.951105] [<ffffffffa0502b62>] update_cowonly_root+0x42/0xd0 [btrfs] Aug 4 02:26:06 rohan kernel: [ 3878.951105] [<ffffffffa0502cac>] commit_cowonly_roots+0xbc/0x100 [btrfs] Aug 4 02:26:06 rohan kernel: [ 3878.951105] [<ffff...
2012 Aug 14
2
Hung I/O, Kernel BUG with corrupt leaf (bad key order)
...rfs] [ 153.920013] [<ffffffffa0175b25>] ? __find_space_info+0x85/0xa0 [btrfs] [ 153.920013] [<ffffffffa017f28b>] ? btrfs_run_delayed_refs+0x1cb/0x450 [btrfs] [ 153.920013] [<ffffffffa01cf8c5>] btrfs_write_out_cache+0x95/0xf0 [btrfs] [ 153.920013] [<ffffffffa017fa2f>] btrfs_write_dirty_block_groups+0x51f/0x5f0 [btrfs] [ 153.920013] [<ffffffffa01e9b2a>] commit_cowonly_roots+0xec/0x1c6 [btrfs] [ 153.920013] [<ffffffffa0190895>] btrfs_commit_transaction+0x575/0xaa0 [btrfs] [ 153.920013] [<ffffffff81073b50>] ? abort_exclusive_wait+0xb0/0xb0 [ 153.920013] [<ffffffffa01...
2013 Oct 05
10
Linux Arch: kernel BUG at fs/btrfs/inode.c:873!
...[ 68.128090] [<ffffffffa0481c99>] btrfs_wait_ordered_range+0x49/0x110 [btrfs] [ 68.128135] [<ffffffffa04a64c0>] __btrfs_write_out_cache+0x6d0/0x8f0 [btrfs] [ 68.128180] [<ffffffffa04a774d>] btrfs_write_out_cache+0x8d/0xe0 [btrfs] [ 68.128224] [<ffffffffa0459983>] btrfs_write_dirty_block_groups+0x533/0x620 [btrfs] [ 68.128271] [<ffffffffa04676e2>] commit_cowonly_roots+0x172/0x260 [btrfs] [ 68.128314] [<ffffffffa04695ad>] btrfs_commit_transaction+0x5bd/0xaf0 [btrfs] [ 68.128353] [<ffffffff8107b460>] ? wake_up_bit+0x30/0x30 [ 68.128391] [<ffffffffa04a4edd&gt...
2011 Mar 31
4
[PATCH] Btrfs: fix free space cache when there are pinned extents and clusters
I noticed a huge problem with the free space cache that was presenting as an early ENOSPC. Turns out when writing the free space cache out I forgot to take into account pinned extents and more importantly clusters. This would result in us leaking free space everytime we unmounted the filesystem and remounted it. I fix this by making sure to check and see if the current block group has a cluster
2011 Feb 16
2
RE: [PATCH V2 0/3] drivers/staging: zcache: dynamic page cache/swap compression
...0x40/0x70 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.854240]  [<ffffffff813458b1>] > ? > >>>> btrfs_truncate_free_space_cache+0x81/0xe0 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.854261]  [<ffffffff812fce15>] > ? > >>>> btrfs_write_dirty_block_groups+0x245/0x500 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.854283]  [<ffffffff812fcb6a>] > ? > >>>> btrfs_run_delayed_refs+0x1ba/0x220 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.854304]  [<ffffffff8130afff>] > ? > >>>> comm...
2012 Jun 26
8
btrfs volume suddenly becomes read-only
I was using my computer normally when suddenly my btrfs volume became read-only. This is on Chris'' for-linus branch (latest commit cb77fcd88) Here''s the relevant excerpt from dmesg [ 50.877500] r8169 0000:01:00.0: eth1: link up [ 50.880296] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 60.959215] eth1: no IPv6 routers present [ 1904.463247] atkbd serio0: Unknown key
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...586,11 @@ static int update_cowonly_root(struct btrfs_trans_handle *trans, ret = btrfs_update_root(trans, tree_root, &root->root_key, &root->root_item); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); old_root_used = btrfs_root_used(&root->root_item); ret = btrfs_write_dirty_block_groups(trans, root); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); } if (root != root->fs_info->extent_root) @@ -611,7 +611,7 @@ static noinline int commit_cowonly_roots(struct btrfs_trans_handle *trans, int ret; ret = btrfs_run_delayed_refs(trans, root, (unsigned long)-1); - BUG_ON(ret)...
2011 Oct 06
26
[PATCH v0 00/18] btfs: Subvolume Quota Groups
This is a first draft of a subvolume quota implementation. It is possible to limit subvolumes and any group of subvolumes and also to track the amount of space that will get freed when deleting snapshots. The current version is functionally incomplete, with the main missing feature being the initial scan and rescan of an existing filesystem. I put some effort into writing an introduction into
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