Lines Matching full:handle
10 /* Just increment the non-pointer handle value */
13 handle_t *handle = current->journal_info; in ext4_get_nojournal() local
14 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal()
19 handle = (handle_t *)ref_cnt; in ext4_get_nojournal()
21 current->journal_info = handle; in ext4_get_nojournal()
22 return handle; in ext4_get_nojournal()
26 /* Decrement the non-pointer handle value */
27 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument
29 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal()
34 handle = (handle_t *)ref_cnt; in ext4_put_nojournal()
36 current->journal_info = handle; in ext4_put_nojournal()
85 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) in __ext4_journal_stop() argument
91 if (!ext4_handle_valid(handle)) { in __ext4_journal_stop()
92 ext4_put_nojournal(handle); in __ext4_journal_stop()
96 err = handle->h_err; in __ext4_journal_stop()
97 if (!handle->h_transaction) { in __ext4_journal_stop()
98 rc = jbd2_journal_stop(handle); in __ext4_journal_stop()
102 sb = handle->h_transaction->t_journal->j_private; in __ext4_journal_stop()
103 rc = jbd2_journal_stop(handle); in __ext4_journal_stop()
112 handle_t *__ext4_journal_start_reserved(handle_t *handle, unsigned int line, in __ext4_journal_start_reserved() argument
118 if (!ext4_handle_valid(handle)) in __ext4_journal_start_reserved()
121 sb = handle->h_journal->j_private; in __ext4_journal_start_reserved()
122 trace_ext4_journal_start_reserved(sb, handle->h_buffer_credits, in __ext4_journal_start_reserved()
126 jbd2_journal_free_reserved(handle); in __ext4_journal_start_reserved()
130 err = jbd2_journal_start_reserved(handle, type, line); in __ext4_journal_start_reserved()
133 return handle; in __ext4_journal_start_reserved()
139 handle_t *handle, int err) in ext4_journal_abort_handle() argument
144 BUG_ON(!ext4_handle_valid(handle)); in ext4_journal_abort_handle()
149 if (!handle->h_err) in ext4_journal_abort_handle()
150 handle->h_err = err; in ext4_journal_abort_handle()
152 if (is_handle_aborted(handle)) in ext4_journal_abort_handle()
158 jbd2_journal_abort_handle(handle); in ext4_journal_abort_handle()
162 handle_t *handle, struct buffer_head *bh) in __ext4_journal_get_write_access() argument
168 if (ext4_handle_valid(handle)) { in __ext4_journal_get_write_access()
169 err = jbd2_journal_get_write_access(handle, bh); in __ext4_journal_get_write_access()
172 handle, err); in __ext4_journal_get_write_access()
186 * If the handle isn't valid we're not journaling, but we still need to
189 int __ext4_forget(const char *where, unsigned int line, handle_t *handle, in __ext4_forget() argument
206 if (!ext4_handle_valid(handle)) { in __ext4_forget()
220 err = jbd2_journal_forget(handle, bh); in __ext4_forget()
223 bh, handle, err); in __ext4_forget()
233 err = jbd2_journal_revoke(handle, blocknr, bh); in __ext4_forget()
236 bh, handle, err); in __ext4_forget()
245 handle_t *handle, struct buffer_head *bh) in __ext4_journal_get_create_access() argument
249 if (ext4_handle_valid(handle)) { in __ext4_journal_get_create_access()
250 err = jbd2_journal_get_create_access(handle, bh); in __ext4_journal_get_create_access()
253 bh, handle, err); in __ext4_journal_get_create_access()
259 handle_t *handle, struct inode *inode, in __ext4_handle_dirty_metadata() argument
268 if (ext4_handle_valid(handle)) { in __ext4_handle_dirty_metadata()
269 err = jbd2_journal_dirty_metadata(handle, bh); in __ext4_handle_dirty_metadata()
271 if (!is_handle_aborted(handle) && WARN_ON_ONCE(err)) { in __ext4_handle_dirty_metadata()
273 handle, err); in __ext4_handle_dirty_metadata()
276 "failed: handle type %u started at " in __ext4_handle_dirty_metadata()
278 handle->h_type, in __ext4_handle_dirty_metadata()
279 handle->h_line_no, in __ext4_handle_dirty_metadata()
280 handle->h_requested_credits, in __ext4_handle_dirty_metadata()
281 handle->h_buffer_credits, err); in __ext4_handle_dirty_metadata()
287 "handle type %u started at line %u, " in __ext4_handle_dirty_metadata()
289 handle->h_type, in __ext4_handle_dirty_metadata()
290 handle->h_line_no, in __ext4_handle_dirty_metadata()
291 handle->h_requested_credits, in __ext4_handle_dirty_metadata()
292 handle->h_buffer_credits, err); in __ext4_handle_dirty_metadata()
318 handle_t *handle, struct super_block *sb) in __ext4_handle_dirty_super() argument
324 if (ext4_handle_valid(handle)) { in __ext4_handle_dirty_super()
325 err = jbd2_journal_dirty_metadata(handle, bh); in __ext4_handle_dirty_super()
328 bh, handle, err); in __ext4_handle_dirty_super()