diff options
| author | Jan Kara <jack@suse.cz> | 2024-06-24 20:01:17 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-03 09:49:35 +0300 |
| commit | 500e3b963d9b278f056b5cc8e9bcdd2f662224da (patch) | |
| tree | 17949b9f4eb4076b2960875a7837b571f804f96f /include/linux | |
| parent | 1770f94fd95da3c787144a0ae5f639d8e9aa275c (diff) | |
| download | linux-500e3b963d9b278f056b5cc8e9bcdd2f662224da.tar.xz | |
jbd2: make jbd2_journal_get_max_txn_bufs() internal
commit 4aa99c71e42ad60178c1154ec24e3df9c684fb67 upstream.
There's no reason to have jbd2_journal_get_max_txn_bufs() public
function. Currently all users are internal and can use
journal->j_max_transaction_buffers instead. This saves some unnecessary
recomputations of the limit as a bonus which becomes important as this
function gets more complex in the following patch.
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20240624170127.3253-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/jbd2.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 6611af5f1d0c..e301d323108d 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h @@ -1665,11 +1665,6 @@ int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode); int jbd2_fc_wait_bufs(journal_t *journal, int num_blks); int jbd2_fc_release_bufs(journal_t *journal); -static inline int jbd2_journal_get_max_txn_bufs(journal_t *journal) -{ - return (journal->j_total_len - journal->j_fc_wbufsize) / 4; -} - /* * is_journal_abort * |
