[-next] ext4: Remove used function ext4_journal_callback_try_del()
Commit Message
commit a015434480dc ("ext4: send parallel discards on commit completions")
removed its last caller so drop it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
fs/ext4/ext4_jbd2.h | 21 ---------------------
1 file changed, 21 deletions(-)
@@ -185,27 +185,6 @@ static inline void ext4_journal_callback_add(handle_t *handle,
spin_unlock(&sbi->s_md_lock);
}
-
-/**
- * ext4_journal_callback_del: delete a registered callback
- * @handle: active journal transaction handle on which callback was registered
- * @jce: registered journal callback entry to unregister
- * Return true if object was successfully removed
- */
-static inline bool ext4_journal_callback_try_del(handle_t *handle,
- struct ext4_journal_cb_entry *jce)
-{
- bool deleted;
- struct ext4_sb_info *sbi =
- EXT4_SB(handle->h_transaction->t_journal->j_private);
-
- spin_lock(&sbi->s_md_lock);
- deleted = !list_empty(&jce->jce_list);
- list_del_init(&jce->jce_list);
- spin_unlock(&sbi->s_md_lock);
- return deleted;
-}
-
int
ext4_mark_iloc_dirty(handle_t *handle,
struct inode *inode,