diff options
author | Zhang Yi <[email protected]> | 2023-11-29 19:47:39 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2023-11-30 23:27:39 -0500 |
commit | 85559227211020b270728104c3b89918f7af27ac (patch) | |
tree | 3e6f8d6369cf410089261553a9a790da0949648c | |
parent | 2dcf5fde6dffb312a4bfb8ef940cea2d1f402e32 (diff) |
jbd2: correct the printing of write_flags in jbd2_write_superblock()
The write_flags print in the trace of jbd2_write_superblock() is not
real, so move the modification before the trace.
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r-- | fs/jbd2/journal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index ed53188472f9..71b30f6a662d 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -1798,9 +1798,11 @@ static int jbd2_write_superblock(journal_t *journal, blk_opf_t write_flags) return -EIO; } - trace_jbd2_write_superblock(journal, write_flags); if (!(journal->j_flags & JBD2_BARRIER)) write_flags &= ~(REQ_FUA | REQ_PREFLUSH); + + trace_jbd2_write_superblock(journal, write_flags); + if (buffer_write_io_error(bh)) { /* * Oh, dear. A previous attempt to write the journal |