Skip to content

Commit

Permalink
jbd2: remove stale comment of update_t_max_wait
Browse files Browse the repository at this point in the history
Commit 2d44292 ("jbd2: remove CONFIG_JBD2_DEBUG to update
t_max_wait") removed jbd2_journal_enable_debug, just remove stale comment
about jbd2_journal_enable_debug.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250123155014.2097920-5-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Kemeng Shi authored and Theodore Ts'o committed Mar 13, 2025
1 parent 0d26708 commit 6c14627
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/jbd2/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ static void jbd2_get_transaction(journal_t *journal,
*/

/*
* Update transaction's maximum wait time, if debugging is enabled.
*
* t_max_wait is carefully updated here with use of atomic compare exchange.
* Note that there could be multiplre threads trying to do this simultaneously
* hence using cmpxchg to avoid any use of locks in this case.
* With this t_max_wait can be updated w/o enabling jbd2_journal_enable_debug.
*/
static inline void update_t_max_wait(transaction_t *transaction,
unsigned long ts)
Expand Down

0 comments on commit 6c14627

Please sign in to comment.