diff --git a/fs/bcachefs/btree_update.h b/fs/bcachefs/btree_update.h index 46fb4a9ed295..63ff824a72da 100644 --- a/fs/bcachefs/btree_update.h +++ b/fs/bcachefs/btree_update.h @@ -94,7 +94,6 @@ void bch2_trans_commit_hook(struct btree_trans *, struct btree_trans_commit_hook *); int __bch2_trans_commit(struct btree_trans *, unsigned); -int bch2_trans_log_msg(struct btree_trans *, const char *, ...); int bch2_fs_log_msg(struct bch_fs *, const char *, ...); /** diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c index f608e1c92285..ba3191016575 100644 --- a/fs/bcachefs/btree_update_leaf.c +++ b/fs/bcachefs/btree_update_leaf.c @@ -1919,18 +1919,6 @@ err: return ret; } -int bch2_trans_log_msg(struct btree_trans *trans, const char *fmt, ...) -{ - va_list args; - int ret; - - va_start(args, fmt); - ret = __bch2_trans_log_msg(&trans->extra_journal_entries, fmt, args); - va_end(args); - - return ret; -} - int bch2_fs_log_msg(struct bch_fs *c, const char *fmt, ...) { va_list args;