Commit 80dccb8
ext4: fix incorrect tid assumption in ext4_wait_for_tail_page_commit()
commit dd589b0 upstream.
Function ext4_wait_for_tail_page_commit() assumes that '0' is not a valid
value for transaction IDs, which is incorrect. Don't assume that and invoke
jbd2_log_wait_commit() if the journal had a committing transaction instead.
Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240724161119.13448-2-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent f55ecc5 commit 80dccb8
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5257 | 5257 | | |
5258 | 5258 | | |
5259 | 5259 | | |
5260 | | - | |
| 5260 | + | |
5261 | 5261 | | |
| 5262 | + | |
5262 | 5263 | | |
5263 | 5264 | | |
5264 | 5265 | | |
| |||
5283 | 5284 | | |
5284 | 5285 | | |
5285 | 5286 | | |
5286 | | - | |
| 5287 | + | |
5287 | 5288 | | |
5288 | | - | |
| 5289 | + | |
5289 | 5290 | | |
| 5291 | + | |
| 5292 | + | |
5290 | 5293 | | |
5291 | | - | |
| 5294 | + | |
5292 | 5295 | | |
5293 | 5296 | | |
5294 | 5297 | | |
| |||
0 commit comments