search for: btrfs_free_block_rsv

Displaying 6 results from an estimated 6 matches for "btrfs_free_block_rsv".

2013 Aug 19
11
[RFC PATCH] Btrfs: fix memory leak of orphan block rsv
...k_rsv = root->orphan_block_rsv; + root->orphan_block_rsv = NULL; + } else { + block_rsv = NULL; + } spin_unlock(&root->orphan_lock); if (root->orphan_item_inserted && @@ -2918,6 +2923,7 @@ int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode) btrfs_free_block_rsv(root, block_rsv); block_rsv = NULL; } + atomic_inc(&root->orphan_block_rsv->count); if (!test_and_set_bit(BTRFS_INODE_HAS_ORPHAN_ITEM, &BTRFS_I(inode)->runtime_flags)) { @@ -2991,6 +2997,9 @@ static int btrfs_orphan_del(struct btrfs_trans_handle *trans, int ret...
2011 Dec 02
3
[PATCH] Btrfs: protect orphan block rsv with spin_lock
...0) { ret = btrfs_del_orphan_item(trans, root->fs_info->tree_root, @@ -1965,10 +1981,9 @@ void btrfs_orphan_commit_root(struct btrfs_trans_handle *trans, root->orphan_item_inserted = 0; } - if (root->orphan_block_rsv) { - WARN_ON(root->orphan_block_rsv->size > 0); - btrfs_free_block_rsv(root, root->orphan_block_rsv); - root->orphan_block_rsv = NULL; + if (block_rsv) { + WARN_ON(block_rsv->size > 0); + btrfs_free_block_rsv(root, block_rsv); } } -- 1.7.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a messa...
2013 Feb 25
4
WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
Is this useful to anyone? Got this after a crash/reboot: if (block_rsv) { WARN_ON(block_rsv->size > 0); <<<<<<<<<<<<<<<<<<<<<< btrfs_free_block_rsv(root, block_rsv); } ------------[ cut here ]------------ WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf() Hardware name: 2429A78 Modules linked in: tun ppdev cpufreq_userspace cpufreq_stats cpufreq_conservative cpufreq_powersave rfcomm bnep autofs4 pci_stub vboxpci(O) vboxne...
2011 Nov 09
12
WARNING: at fs/btrfs/inode.c:2198 btrfs_orphan_commit_root+0xa8/0xc0
Hello, I''m seeing a lot of warnings in dmesg with a BTRFS filesystem. I''m using the 3.1 kernel, I found a patch for these warnings ( http://marc.info/?l=linux-btrfs&m=131547325515336&w=2) <http://marc.info/?l=linux-btrfs&m=131547325515336&w=2>, but that patch has already been included in 3.1. Are there any other patches I can try? I''m using
2012 Jan 05
4
[RFC][PATCH 3/3] Btrfs: improve truncation of btrfs
...trfs_orphan_del(NULL, inode); - } - if (trans) { - trans->block_rsv = &root->fs_info->trans_block_rsv; ret = btrfs_update_inode(trans, root, inode); if (ret && !err) err = ret; @@ -6695,12 +6629,17 @@ end_trans: btrfs_btree_balance_dirty(root, nr); } -out: - btrfs_free_block_rsv(root, rsv); - if (ret && !err) err = ret; + if (!err && (newsize & mask)) { + ret = btrfs_truncate_page(inode->i_mapping, newsize); + if (ret) + return ret; + + btrfs_wait_ordered_range(inode, newsize & (~mask), (u64)-1); + } + return err; } -- 1.7.6.4 -...
2012 Apr 20
44
Ceph on btrfs 3.4rc
After running ceph on XFS for some time, I decided to try btrfs again. Performance with the current "for-linux-min" branch and big metadata is much better. The only problem (?) I''m still seeing is a warning that seems to occur from time to time: [87703.784552] ------------[ cut here ]------------ [87703.789759] WARNING: at fs/btrfs/inode.c:2103