Lines Matching refs:handle
178 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument
185 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add()
190 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in ext4_journal_callback_add()
200 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument
205 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del()
215 ext4_mark_iloc_dirty(handle_t *handle,
224 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode,
227 int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode);
233 handle_t *handle, struct buffer_head *bh);
235 int __ext4_forget(const char *where, unsigned int line, handle_t *handle,
240 handle_t *handle, struct buffer_head *bh);
243 handle_t *handle, struct inode *inode,
247 handle_t *handle, struct super_block *sb);
249 #define ext4_journal_get_write_access(handle, bh) \ argument
250 __ext4_journal_get_write_access(__func__, __LINE__, (handle), (bh))
251 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) \ argument
252 __ext4_forget(__func__, __LINE__, (handle), (is_metadata), (inode), \
254 #define ext4_journal_get_create_access(handle, bh) \ argument
255 __ext4_journal_get_create_access(__func__, __LINE__, (handle), (bh))
256 #define ext4_handle_dirty_metadata(handle, inode, bh) \ argument
257 __ext4_handle_dirty_metadata(__func__, __LINE__, (handle), (inode), \
259 #define ext4_handle_dirty_super(handle, sb) \ argument
260 __ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb))
264 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle);
270 static inline int ext4_handle_valid(handle_t *handle) in ext4_handle_valid() argument
272 if ((unsigned long)handle < EXT4_NOJOURNAL_MAX_REF_COUNT) in ext4_handle_valid()
277 static inline void ext4_handle_sync(handle_t *handle) in ext4_handle_sync() argument
279 if (ext4_handle_valid(handle)) in ext4_handle_sync()
280 handle->h_sync = 1; in ext4_handle_sync()
283 static inline int ext4_handle_is_aborted(handle_t *handle) in ext4_handle_is_aborted() argument
285 if (ext4_handle_valid(handle)) in ext4_handle_is_aborted()
286 return is_handle_aborted(handle); in ext4_handle_is_aborted()
290 static inline int ext4_handle_has_enough_credits(handle_t *handle, int needed) in ext4_handle_has_enough_credits() argument
292 if (ext4_handle_valid(handle) && handle->h_buffer_credits < needed) in ext4_handle_has_enough_credits()
314 #define ext4_journal_stop(handle) \ argument
315 __ext4_journal_stop(__func__, __LINE__, (handle))
317 #define ext4_journal_start_reserved(handle, type) \ argument
318 __ext4_journal_start_reserved((handle), __LINE__, (type))
320 handle_t *__ext4_journal_start_reserved(handle_t *handle, unsigned int line,
323 static inline void ext4_journal_free_reserved(handle_t *handle) in ext4_journal_free_reserved() argument
325 if (ext4_handle_valid(handle)) in ext4_journal_free_reserved()
326 jbd2_journal_free_reserved(handle); in ext4_journal_free_reserved()
334 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
336 if (ext4_handle_valid(handle)) in ext4_journal_extend()
337 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
341 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
343 if (ext4_handle_valid(handle)) in ext4_journal_restart()
344 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
362 static inline int ext4_jbd2_file_inode(handle_t *handle, struct inode *inode) in ext4_jbd2_file_inode() argument
364 if (ext4_handle_valid(handle)) in ext4_jbd2_file_inode()
365 return jbd2_journal_file_inode(handle, EXT4_I(inode)->jinode); in ext4_jbd2_file_inode()
369 static inline void ext4_update_inode_fsync_trans(handle_t *handle, in ext4_update_inode_fsync_trans() argument
375 if (ext4_handle_valid(handle) && !is_handle_aborted(handle)) { in ext4_update_inode_fsync_trans()
376 ei->i_sync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()
378 ei->i_datasync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()