search for: fs_mutex

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

Did you mean: s_mutex
2007 Aug 09
1
[RFC] All my fsync changes
...btrfs_trans_handle *trans; + struct btrfs_transaction *last_trans; /* - * FIXME, use inode generation number to check if we can skip the - * commit + * check the transaction that last modified this inode + * and see if its already been committed */ mutex_lock(&root->fs_info->fs_mutex); + if (!BTRFS_I(inode)->last_trans) + goto out; + mutex_lock(&root->fs_info->trans_mutex); + last_trans = radix_tree_lookup(&root->fs_info->transaction_map_radix, + BTRFS_I(inode)->last_trans); + if (!last_trans) { + BTRFS_I(inode)->last_trans = 0; + mutex_unloc...
2007 Jun 29
2
Mknod: Operation not permitted
When trying to move my root to a btrfs filesystem, I found a missing feature (or a bug). It's not possible to create device files. To reproduce, run this on a btrfs filesystem: mknod test c 1 1 result: mknod: `test': Operation not permitted Frank
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...e *btrfs_create_orphan_dir(struct btrfs_root *root) +{ + struct inode *inode = NULL; + struct inode *dir = root->inode; + struct btrfs_trans_handle *trans; + struct btrfs_key key; + int err = 0, drop_on_err = 0; + u64 objectid = 0; + unsigned long nr = 1; + + mutex_lock(&root->fs_info->fs_mutex); + err = btrfs_check_free_space(root, 1, 0); + if (err) + goto out_unlock; + + trans = btrfs_start_transaction(root, 1); + btrfs_set_trans_block_group(trans, dir); + + if (IS_ERR(trans)) { + err = PTR_ERR(trans); + goto out_unlock; + } + + err = btrfs_find_free_objectid(trans, root, dir->i_i...
2007 Sep 23
0
[patch]fix get_bh and brelse issues when drop snapshot
...35:00 2007 +0800 @@ -457,6 +457,7 @@ static int drop_dirty_roots(struct btrfs ret = btrfs_end_transaction(trans, tree_root); BUG_ON(ret); + btrfs_block_release(dirty->root, dirty->root->node); kfree(dirty->root); kfree(dirty); mutex_unlock(&tree_root->fs_info->fs_mutex);
2008 Aug 05
31
Btrfs v0.16 released
...lity fixes and new features. There were quite a few contributors this time around, but big thanks to Josef Bacik and Yan Zheng for their help on this release. Toei Rei also helped track down an important corruption problem. Scalability and performance: * Fine grained btree locking. The large fs_mutex is finally gone. There is still some work to do on the locking during extent allocation, but the code is much more scalable than it was. * Helper threads for checksumming and other background tasks. Most CPU intensive operations have been pushed off to helper threads to take advantage of SMP mach...