Lines Matching refs:handle

165 static inline void _ext4_journal_callback_add(handle_t *handle,  in _ext4_journal_callback_add()  argument
169 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in _ext4_journal_callback_add()
172 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument
179 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add()
184 _ext4_journal_callback_add(handle, jce); in ext4_journal_callback_add()
195 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument
200 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del()
210 ext4_mark_iloc_dirty(handle_t *handle,
219 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode,
224 int __ext4_mark_inode_dirty(handle_t *handle, struct inode *inode,
234 handle_t *handle, struct super_block *sb,
238 int __ext4_forget(const char *where, unsigned int line, handle_t *handle,
243 handle_t *handle, struct super_block *sb,
248 handle_t *handle, struct inode *inode,
251 #define ext4_journal_get_write_access(handle, sb, bh, trigger_type) \ argument
252 __ext4_journal_get_write_access(__func__, __LINE__, (handle), (sb), \
254 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) \ argument
255 __ext4_forget(__func__, __LINE__, (handle), (is_metadata), (inode), \
257 #define ext4_journal_get_create_access(handle, sb, bh, trigger_type) \ argument
258 __ext4_journal_get_create_access(__func__, __LINE__, (handle), (sb), \
260 #define ext4_handle_dirty_metadata(handle, inode, bh) \ argument
261 __ext4_handle_dirty_metadata(__func__, __LINE__, (handle), (inode), \
267 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle);
273 static inline int ext4_handle_valid(handle_t *handle) in ext4_handle_valid() argument
275 if ((unsigned long)handle < EXT4_NOJOURNAL_MAX_REF_COUNT) in ext4_handle_valid()
280 static inline void ext4_handle_sync(handle_t *handle) in ext4_handle_sync() argument
282 if (ext4_handle_valid(handle)) in ext4_handle_sync()
283 handle->h_sync = 1; in ext4_handle_sync()
286 static inline int ext4_handle_is_aborted(handle_t *handle) in ext4_handle_is_aborted() argument
288 if (ext4_handle_valid(handle)) in ext4_handle_is_aborted()
289 return is_handle_aborted(handle); in ext4_handle_is_aborted()
330 #define ext4_journal_stop(handle) \ argument
331 __ext4_journal_stop(__func__, __LINE__, (handle))
333 #define ext4_journal_start_reserved(handle, type) \ argument
334 __ext4_journal_start_reserved((handle), __LINE__, (type))
336 handle_t *__ext4_journal_start_reserved(handle_t *handle, unsigned int line,
344 static inline int ext4_journal_extend(handle_t *handle, int nblocks, int revoke) in ext4_journal_extend() argument
346 if (ext4_handle_valid(handle)) in ext4_journal_extend()
347 return jbd2_journal_extend(handle, nblocks, revoke); in ext4_journal_extend()
351 static inline int ext4_journal_restart(handle_t *handle, int nblocks, in ext4_journal_restart() argument
354 if (ext4_handle_valid(handle)) in ext4_journal_restart()
355 return jbd2__journal_restart(handle, nblocks, revoke, GFP_NOFS); in ext4_journal_restart()
359 int __ext4_journal_ensure_credits(handle_t *handle, int check_cred,
373 #define ext4_journal_ensure_credits_fn(handle, check_cred, extend_cred, \ argument
377 int err = __ext4_journal_ensure_credits((handle), (check_cred), \
385 err = ext4_journal_restart((handle), (extend_cred), (revoke_cred)); \
399 static inline int ext4_journal_ensure_credits(handle_t *handle, int credits, in ext4_journal_ensure_credits() argument
402 return ext4_journal_ensure_credits_fn(handle, credits, credits, in ext4_journal_ensure_credits()
420 static inline int ext4_jbd2_inode_add_write(handle_t *handle, in ext4_jbd2_inode_add_write() argument
423 if (ext4_handle_valid(handle)) in ext4_jbd2_inode_add_write()
424 return jbd2_journal_inode_ranged_write(handle, in ext4_jbd2_inode_add_write()
429 static inline int ext4_jbd2_inode_add_wait(handle_t *handle, in ext4_jbd2_inode_add_wait() argument
432 if (ext4_handle_valid(handle)) in ext4_jbd2_inode_add_wait()
433 return jbd2_journal_inode_ranged_wait(handle, in ext4_jbd2_inode_add_wait()
438 static inline void ext4_update_inode_fsync_trans(handle_t *handle, in ext4_update_inode_fsync_trans() argument
444 if (ext4_handle_valid(handle) && !is_handle_aborted(handle)) { in ext4_update_inode_fsync_trans()
445 ei->i_sync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()
447 ei->i_datasync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()