From: Zhang Yi Date: Tue, 3 Dec 2024 01:44:06 +0000 (+0800) Subject: jbd2: increase IO priority for writing revoke records X-Git-Tag: v6.13-rc7~34^2~7^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac1e21bd8c883aeac2f1835fc93b39c1e6838b35;p=thirdparty%2Flinux.git jbd2: increase IO priority for writing revoke records Commit '6a3afb6ac6df ("jbd2: increase the journal IO's priority")' increases the priority of journal I/O by marking I/O with the JBD2_JOURNAL_REQ_FLAGS. However, that commit missed the revoke buffers, so also addresses that kind of I/Os. Fixes: 6a3afb6ac6df ("jbd2: increase the journal IO's priority") Signed-off-by: Zhang Yi Link: https://lore.kernel.org/r/20241203014407.805916-2-yi.zhang@huaweicloud.com Reviewed-by: Kemeng Shi Reviewed-by: Jan Kara Signed-off-by: Christian Brauner --- diff --git a/fs/jbd2/revoke.c b/fs/jbd2/revoke.c index 4556e46890244..ce63d5fde9c3a 100644 --- a/fs/jbd2/revoke.c +++ b/fs/jbd2/revoke.c @@ -654,7 +654,7 @@ static void flush_descriptor(journal_t *journal, set_buffer_jwrite(descriptor); BUFFER_TRACE(descriptor, "write"); set_buffer_dirty(descriptor); - write_dirty_buffer(descriptor, REQ_SYNC); + write_dirty_buffer(descriptor, JBD2_JOURNAL_REQ_FLAGS); } #endif