Displaying 3 results from an estimated 3 matches for "btrfs_trans_release_metadata".
2012 Jan 22
0
Compiler warnings: cast from pointer to integer of different size
...In function ‘update_global_block_rsv’:
fs/btrfs/extent-tree.c:4134:12: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
fs/btrfs/extent-tree.c:4141:12: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
fs/btrfs/extent-tree.c: In function ‘btrfs_trans_release_metadata’:
fs/btrfs/extent-tree.c:4194:62: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
fs/btrfs/extent-tree.c: In function ‘btrfs_update_reserved_bytes’:
fs/btrfs/extent-tree.c:4713:14: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
CC...
2010 Apr 19
0
[PATCH 08/12] Btrfs: Introduce global metadata reservation
..._handle *trans,
struct btrfs_root *root, int throttle)
{
- struct btrfs_transaction *cur_trans;
+ struct btrfs_transaction *cur_trans = trans->transaction;
struct btrfs_fs_info *info = root->fs_info;
int count = 0;
@@ -349,9 +375,19 @@ static int __btrfs_end_transaction(struc
btrfs_trans_release_metadata(trans, root);
+ if (!root->fs_info->open_ioctl_trans &&
+ should_end_transaction(trans, root))
+ trans->transaction->blocked = 1;
+
+ if (cur_trans->blocked && !cur_trans->in_commit) {
+ if (throttle)
+ return btrfs_commit_transaction(trans, root);
+ els...
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...ON(ret);
+ btrfs_fixable_bug_on(ret);
}
return 0;
}
@@ -1007,7 +1007,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
* any runnings procs may add more while we are here
*/
ret = btrfs_run_delayed_refs(trans, root, 0);
- BUG_ON(ret);
+ btrfs_fixable_bug_on(ret);
btrfs_trans_release_metadata(trans, root);
@@ -1019,7 +1019,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
cur_trans->delayed_refs.flushing = 1;
ret = btrfs_run_delayed_refs(trans, root, 0);
- BUG_ON(ret);
+ btrfs_fixable_bug_on(ret);
mutex_lock(&root->fs_info->trans_mutex);
if (...