diff options
author | Baokun Li <libaokun1@huawei.com> | 2025-03-06 14:32:40 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2025-03-18 00:15:25 -0400 |
commit | 743717670a36b80dfd43896dac5074f8ba5f163f (patch) | |
tree | 0b4d3228e35e9b2b4d6bd44226c82a066d5976d4 | |
parent | 1b419c889c0767a5b66d0a6c566cae491f1cb0f7 (diff) | |
download | linux-stable-743717670a36b80dfd43896dac5074f8ba5f163f.tar.gz linux-stable-743717670a36b80dfd43896dac5074f8ba5f163f.tar.bz2 linux-stable-743717670a36b80dfd43896dac5074f8ba5f163f.zip |
jbd2: remove jbd2_journal_unfile_buffer()
Since the function jbd2_journal_unfile_buffer() is no longer called
anywhere after commit e5a120aeb57f ("jbd2: remove journal_head from
descriptor buffers"), so let's remove it.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250306063240.157884-1-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | fs/jbd2/transaction.c | 15 | ||||
-rw-r--r-- | include/linux/jbd2.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 27dfdfda972d..cbc4785462f5 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@ -2075,21 +2075,6 @@ static void __jbd2_journal_unfile_buffer(struct journal_head *jh) jh->b_transaction = NULL; } -void jbd2_journal_unfile_buffer(journal_t *journal, struct journal_head *jh) -{ - struct buffer_head *bh = jh2bh(jh); - - /* Get reference so that buffer cannot be freed before we unlock it */ - get_bh(bh); - spin_lock(&jh->b_state_lock); - spin_lock(&journal->j_list_lock); - __jbd2_journal_unfile_buffer(jh); - spin_unlock(&journal->j_list_lock); - spin_unlock(&jh->b_state_lock); - jbd2_journal_put_journal_head(jh); - __brelse(bh); -} - /** * jbd2_journal_try_to_free_buffers() - try to free page buffers. * @journal: journal for operation diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index c211de10e9c8..023e8abdb99a 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h @@ -1396,7 +1396,6 @@ JBD2_FEATURE_INCOMPAT_FUNCS(fast_commit, FAST_COMMIT) */ /* Filing buffers */ -extern void jbd2_journal_unfile_buffer(journal_t *, struct journal_head *); extern bool __jbd2_journal_refile_buffer(struct journal_head *); extern void jbd2_journal_refile_buffer(journal_t *, struct journal_head *); extern void __jbd2_journal_file_buffer(struct journal_head *, transaction_t *, int); |