diff mbox series

[-next] ext4: Remove used function ext4_journal_callback_try_del()

Message ID 20230616101504.32520-1-yuehaibing@huawei.com
State New
Headers show
Series [-next] ext4: Remove used function ext4_journal_callback_try_del() | expand

Commit Message

Yue Haibing June 16, 2023, 10:15 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h
index 0c77697d5e90..33b9d328ca9e 100644
--- a/fs/ext4/ext4_jbd2.h
+++ b/fs/ext4/ext4_jbd2.h
@@ -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,