Commit 2b6d392
ext4: correct the reserved credits for extent conversion
commit 95ad8ee upstream.
Now, we reserve journal credits for converting extents in only one page
to written state when the I/O operation is complete. This is
insufficient when large folio is enabled.
Fix this by reserving credits for converting up to one extent per block in
the largest 2MB folio, this calculation should only involve extents index
and leaf blocks, so it should not estimate too many credits.
Fixes: 7ac6730 ("ext4: enable large folio for regular file")
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Baokun Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 7fe61ac commit 2b6d392
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2850 | 2850 | | |
2851 | 2851 | | |
2852 | 2852 | | |
| 2853 | + | |
2853 | 2854 | | |
2854 | 2855 | | |
2855 | | - | |
| 2856 | + | |
2856 | 2857 | | |
2857 | | - | |
2858 | | - | |
| 2858 | + | |
2859 | 2859 | | |
2860 | 2860 | | |
2861 | 2861 | | |
| |||
0 commit comments