Lines Matching full:handle

68 /* We break up a large truncate or write transaction once the handle's
112 * Ext4 handle operation types -- for logging purposes
137 /* list information for other callbacks attached to the same handle */
149 * @handle: active journal transaction handle to register callback on
157 * after the transaction for which the handle was created has completed.
168 static inline void _ext4_journal_callback_add(handle_t *handle, in _ext4_journal_callback_add() argument
172 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in _ext4_journal_callback_add()
175 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument
182 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add()
187 _ext4_journal_callback_add(handle, jce); in ext4_journal_callback_add()
194 * @handle: active journal transaction handle on which callback was registered
198 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument
203 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del()
213 ext4_mark_iloc_dirty(handle_t *handle,
222 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode,
225 int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode);
234 handle_t *handle, struct buffer_head *bh);
236 int __ext4_forget(const char *where, unsigned int line, handle_t *handle,
241 handle_t *handle, struct buffer_head *bh);
244 handle_t *handle, struct inode *inode,
248 handle_t *handle, struct super_block *sb);
250 #define ext4_journal_get_write_access(handle, bh) \ argument
251 __ext4_journal_get_write_access(__func__, __LINE__, (handle), (bh))
252 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) \ argument
253 __ext4_forget(__func__, __LINE__, (handle), (is_metadata), (inode), \
255 #define ext4_journal_get_create_access(handle, bh) \ argument
256 __ext4_journal_get_create_access(__func__, __LINE__, (handle), (bh))
257 #define ext4_handle_dirty_metadata(handle, inode, bh) \ argument
258 __ext4_handle_dirty_metadata(__func__, __LINE__, (handle), (inode), \
260 #define ext4_handle_dirty_super(handle, sb) \ argument
261 __ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb))
265 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle);
270 * a properly allocated handle is using a journal or not. */
271 static inline int ext4_handle_valid(handle_t *handle) in ext4_handle_valid() argument
273 if ((unsigned long)handle < EXT4_NOJOURNAL_MAX_REF_COUNT) in ext4_handle_valid()
278 static inline void ext4_handle_sync(handle_t *handle) in ext4_handle_sync() argument
280 if (ext4_handle_valid(handle)) in ext4_handle_sync()
281 handle->h_sync = 1; in ext4_handle_sync()
284 static inline int ext4_handle_is_aborted(handle_t *handle) in ext4_handle_is_aborted() argument
286 if (ext4_handle_valid(handle)) in ext4_handle_is_aborted()
287 return is_handle_aborted(handle); in ext4_handle_is_aborted()
291 static inline int ext4_handle_has_enough_credits(handle_t *handle, int needed) in ext4_handle_has_enough_credits() argument
293 if (ext4_handle_valid(handle) && handle->h_buffer_credits < needed) in ext4_handle_has_enough_credits()
315 #define ext4_journal_stop(handle) \ argument
316 __ext4_journal_stop(__func__, __LINE__, (handle))
318 #define ext4_journal_start_reserved(handle, type) \ argument
319 __ext4_journal_start_reserved((handle), __LINE__, (type))
321 handle_t *__ext4_journal_start_reserved(handle_t *handle, unsigned int line,
324 static inline void ext4_journal_free_reserved(handle_t *handle) in ext4_journal_free_reserved() argument
326 if (ext4_handle_valid(handle)) in ext4_journal_free_reserved()
327 jbd2_journal_free_reserved(handle); in ext4_journal_free_reserved()
335 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
337 if (ext4_handle_valid(handle)) in ext4_journal_extend()
338 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
342 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
344 if (ext4_handle_valid(handle)) in ext4_journal_restart()
345 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
363 static inline int ext4_jbd2_inode_add_write(handle_t *handle, in ext4_jbd2_inode_add_write() argument
366 if (ext4_handle_valid(handle)) in ext4_jbd2_inode_add_write()
367 return jbd2_journal_inode_ranged_write(handle, in ext4_jbd2_inode_add_write()
372 static inline int ext4_jbd2_inode_add_wait(handle_t *handle, in ext4_jbd2_inode_add_wait() argument
375 if (ext4_handle_valid(handle)) in ext4_jbd2_inode_add_wait()
376 return jbd2_journal_inode_ranged_wait(handle, in ext4_jbd2_inode_add_wait()
381 static inline void ext4_update_inode_fsync_trans(handle_t *handle, in ext4_update_inode_fsync_trans() argument
387 if (ext4_handle_valid(handle) && !is_handle_aborted(handle)) { in ext4_update_inode_fsync_trans()
388 ei->i_sync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()
390 ei->i_datasync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()