Lines Matching defs:handle

287 		/* right now we don't handle cross boundary allocation */
305 * @handle: handle for this transaction
328 static int ext4_alloc_branch(handle_t *handle,
340 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err);
342 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle,
364 err = ext4_journal_get_create_access(handle, bh);
384 err = ext4_handle_dirty_metadata(handle, ar->inode, bh);
392 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i],
406 ext4_free_blocks(handle, ar->inode, branch[i+1].bh,
415 * @handle: handle for this transaction
424 static int ext4_splice_branch(handle_t *handle,
439 err = ext4_journal_get_write_access(handle, where->bh);
470 err = ext4_handle_dirty_metadata(handle, ar->inode, where->bh);
477 err = ext4_mark_inode_dirty(handle, ar->inode);
491 ext4_free_blocks(handle, ar->inode, where[i].bh, 0, 1,
494 ext4_free_blocks(handle, ar->inode, NULL, le32_to_cpu(where[num].key),
516 * `handle' can be NULL if create == 0.
528 int ext4_ind_map_blocks(handle_t *handle, struct inode *inode,
545 J_ASSERT(handle != NULL || (flags & EXT4_GET_BLOCKS_CREATE) == 0);
633 err = ext4_alloc_branch(handle, &ar, indirect_blks,
640 * credits cannot be returned. Can we handle this somehow? We
644 err = ext4_splice_branch(handle, &ar, partial, indirect_blks);
650 ext4_update_inode_fsync_trans(handle, inode, 1);
694 static int ext4_ind_trunc_restart_fn(handle_t *handle, struct inode *inode,
701 err = ext4_handle_dirty_metadata(handle, inode, bh);
705 err = ext4_mark_inode_dirty(handle, inode);
729 static int ext4_ind_truncate_ensure_credits(handle_t *handle,
737 ret = ext4_journal_ensure_credits_fn(handle, EXT4_RESERVE_TRANS_BLOCKS,
739 ext4_ind_trunc_restart_fn(handle, inode, bh, &dropped));
746 ret = ext4_journal_get_write_access(handle, bh);
861 static int ext4_clear_blocks(handle_t *handle, struct inode *inode,
884 err = ext4_ind_truncate_ensure_credits(handle, inode, bh,
892 ext4_free_blocks(handle, inode, NULL, block_to_free, count, flags);
901 * @handle: handle for this transaction
918 static void ext4_free_data(handle_t *handle, struct inode *inode,
934 err = ext4_journal_get_write_access(handle, this_bh);
952 err = ext4_clear_blocks(handle, inode, this_bh,
965 err = ext4_clear_blocks(handle, inode, this_bh, block_to_free,
981 ext4_handle_dirty_metadata(handle, inode, this_bh);
992 * @handle: JBD handle for this transaction
1003 static void ext4_free_branches(handle_t *handle, struct inode *inode,
1010 if (ext4_handle_is_aborted(handle))
1045 ext4_free_branches(handle, inode, bh,
1067 if (ext4_handle_is_aborted(handle))
1069 if (ext4_ind_truncate_ensure_credits(handle, inode,
1086 ext4_free_blocks(handle, inode, NULL, nr, 1,
1096 if (!ext4_journal_get_write_access(handle,
1101 ext4_handle_dirty_metadata(handle,
1110 ext4_free_data(handle, inode, parent_bh, first, last);
1114 void ext4_ind_truncate(handle_t *handle, struct inode *inode)
1156 ext4_free_data(handle, inode, NULL, i_data+offsets[0],
1166 ext4_free_branches(handle, inode, NULL,
1176 ext4_free_branches(handle, inode, partial->bh,
1183 ext4_free_branches(handle, inode, partial->bh, partial->p + 1,
1196 ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
1203 ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
1210 ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
1221 * @handle: JBD handle for this transaction
1229 int ext4_ind_remove_space(handle_t *handle, struct inode *inode,
1258 ext4_free_data(handle, inode, NULL, i_data + offsets[0],
1274 ext4_free_data(handle, inode, NULL, i_data + offsets[0],
1284 ext4_free_branches(handle, inode, NULL,
1290 ext4_free_branches(handle, inode, partial->bh,
1301 ext4_free_branches(handle, inode, partial->bh,
1335 ext4_free_branches(handle, inode, partial2->bh,
1364 ext4_free_branches(handle, inode, NULL,
1371 ext4_free_branches(handle, inode, partial->bh,
1399 ext4_free_branches(handle, inode, partial->bh,
1414 ext4_free_branches(handle, inode, partial->bh,
1421 ext4_free_branches(handle, inode, partial2->bh,
1450 ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
1459 ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
1468 ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);