• Home
  • Raw
  • Download

Lines Matching refs:handle

180 static inline void ext4_journal_callback_add(handle_t *handle,  in ext4_journal_callback_add()  argument
187 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add()
192 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in ext4_journal_callback_add()
202 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument
207 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del()
217 ext4_mark_iloc_dirty(handle_t *handle,
226 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode,
229 int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode);
235 handle_t *handle, struct buffer_head *bh);
237 int __ext4_forget(const char *where, unsigned int line, handle_t *handle,
242 handle_t *handle, struct buffer_head *bh);
245 handle_t *handle, struct inode *inode,
249 handle_t *handle, struct super_block *sb);
251 #define ext4_journal_get_write_access(handle, bh) \ argument
252 __ext4_journal_get_write_access(__func__, __LINE__, (handle), (bh))
253 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) \ argument
254 __ext4_forget(__func__, __LINE__, (handle), (is_metadata), (inode), \
256 #define ext4_journal_get_create_access(handle, bh) \ argument
257 __ext4_journal_get_create_access(__func__, __LINE__, (handle), (bh))
258 #define ext4_handle_dirty_metadata(handle, inode, bh) \ argument
259 __ext4_handle_dirty_metadata(__func__, __LINE__, (handle), (inode), \
261 #define ext4_handle_dirty_super(handle, sb) \ argument
262 __ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb))
266 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle);
272 static inline int ext4_handle_valid(handle_t *handle) in ext4_handle_valid() argument
274 if ((unsigned long)handle < EXT4_NOJOURNAL_MAX_REF_COUNT) in ext4_handle_valid()
279 static inline void ext4_handle_sync(handle_t *handle) in ext4_handle_sync() argument
281 if (ext4_handle_valid(handle)) in ext4_handle_sync()
282 handle->h_sync = 1; in ext4_handle_sync()
285 static inline int ext4_handle_is_aborted(handle_t *handle) in ext4_handle_is_aborted() argument
287 if (ext4_handle_valid(handle)) in ext4_handle_is_aborted()
288 return is_handle_aborted(handle); in ext4_handle_is_aborted()
292 static inline int ext4_handle_has_enough_credits(handle_t *handle, int needed) in ext4_handle_has_enough_credits() argument
294 if (ext4_handle_valid(handle) && handle->h_buffer_credits < needed) in ext4_handle_has_enough_credits()
316 #define ext4_journal_stop(handle) \ argument
317 __ext4_journal_stop(__func__, __LINE__, (handle))
319 #define ext4_journal_start_reserved(handle, type) \ argument
320 __ext4_journal_start_reserved((handle), __LINE__, (type))
322 handle_t *__ext4_journal_start_reserved(handle_t *handle, unsigned int line,
325 static inline void ext4_journal_free_reserved(handle_t *handle) in ext4_journal_free_reserved() argument
327 if (ext4_handle_valid(handle)) in ext4_journal_free_reserved()
328 jbd2_journal_free_reserved(handle); in ext4_journal_free_reserved()
336 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
338 if (ext4_handle_valid(handle)) in ext4_journal_extend()
339 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
343 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
345 if (ext4_handle_valid(handle)) in ext4_journal_restart()
346 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
364 static inline int ext4_jbd2_file_inode(handle_t *handle, struct inode *inode) in ext4_jbd2_file_inode() argument
366 if (ext4_handle_valid(handle)) in ext4_jbd2_file_inode()
367 return jbd2_journal_file_inode(handle, EXT4_I(inode)->jinode); in ext4_jbd2_file_inode()
371 static inline void ext4_update_inode_fsync_trans(handle_t *handle, in ext4_update_inode_fsync_trans() argument
377 if (ext4_handle_valid(handle)) { in ext4_update_inode_fsync_trans()
378 ei->i_sync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()
380 ei->i_datasync_tid = handle->h_transaction->t_tid; in ext4_update_inode_fsync_trans()