Commit ef51068
committed
Merge tag 'f2fs-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs
Pull f2fs updates from Jaegeuk Kim:
"In this cycle, f2fs has some performance improvements for Android
workloads such as using read-unfair rwsems and adding some sysfs
entries to control GCs and discard commands in more details. In
addtiion, it has some tunings to improve the recovery speed after
sudden power-cut.
Enhancement:
- add reader-unfair rwsems with F2FS_UNFAIR_RWSEM: will replace with
generic API support
- adjust to make the readahead/recovery flow more efficiently
- sysfs entries to control issue speeds of GCs and Discard commands
- enable idmapped mounts
Bug fix:
- correct wrong error handling routines
- fix missing conditions in quota
- fix a potential deadlock between writeback and block plug routines
- fix a deadlock btween freezefs and evict_inode
We've added some boundary checks to avoid kernel panics on corrupted
images, and several minor code clean-ups"
* tag 'f2fs-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (27 commits)
f2fs: fix to do sanity check on .cp_pack_total_block_count
f2fs: make gc_urgent and gc_segment_mode sysfs node readable
f2fs: use aggressive GC policy during f2fs_disable_checkpoint()
f2fs: fix compressed file start atomic write may cause data corruption
f2fs: initialize sbi->gc_mode explicitly
f2fs: introduce gc_urgent_mid mode
f2fs: compress: fix to print raw data size in error path of lz4 decompression
f2fs: remove redundant parameter judgment
f2fs: use spin_lock to avoid hang
f2fs: don't get FREEZE lock in f2fs_evict_inode in frozen fs
f2fs: remove unnecessary read for F2FS_FITS_IN_INODE
f2fs: introduce F2FS_UNFAIR_RWSEM to support unfair rwsem
f2fs: avoid an infinite loop in f2fs_sync_dirty_inodes
f2fs: fix to do sanity check on curseg->alloc_type
f2fs: fix to avoid potential deadlock
f2fs: quota: fix loop condition at f2fs_quota_sync()
f2fs: Restore rwsem lockdep support
f2fs: fix missing free nid in f2fs_handle_failed_inode
f2fs: support idmapped mounts
f2fs: add a way to limit roll forward recovery time
...23 files changed
Lines changed: 699 additions & 391 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
101 | 129 | | |
102 | 130 | | |
103 | 131 | | |
| |||
269 | 297 | | |
270 | 298 | | |
271 | 299 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
277 | 310 | | |
278 | 311 | | |
279 | 312 | | |
| |||
430 | 463 | | |
431 | 464 | | |
432 | 465 | | |
| 466 | + | |
433 | 467 | | |
434 | 468 | | |
435 | 469 | | |
| |||
503 | 537 | | |
504 | 538 | | |
505 | 539 | | |
506 | | - | |
| 540 | + | |
507 | 541 | | |
508 | 542 | | |
509 | 543 | | |
| |||
540 | 574 | | |
541 | 575 | | |
542 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
222 | | - | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | | - | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | | - | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
282 | | - | |
| 285 | + | |
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
| |||
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
422 | | - | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
429 | 432 | | |
430 | | - | |
| 433 | + | |
431 | 434 | | |
432 | 435 | | |
433 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
| |||
282 | 289 | | |
283 | 290 | | |
284 | 291 | | |
285 | | - | |
| 292 | + | |
| 293 | + | |
286 | 294 | | |
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
290 | 301 | | |
291 | 302 | | |
292 | 303 | | |
293 | 304 | | |
294 | 305 | | |
295 | 306 | | |
296 | | - | |
| 307 | + | |
297 | 308 | | |
298 | 309 | | |
299 | 310 | | |
| |||
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
354 | | - | |
| 365 | + | |
355 | 366 | | |
356 | 367 | | |
357 | 368 | | |
358 | 369 | | |
359 | 370 | | |
360 | | - | |
| 371 | + | |
361 | 372 | | |
362 | 373 | | |
363 | 374 | | |
| |||
864 | 875 | | |
865 | 876 | | |
866 | 877 | | |
| 878 | + | |
867 | 879 | | |
868 | 880 | | |
869 | 881 | | |
870 | 882 | | |
871 | 883 | | |
872 | 884 | | |
873 | 885 | | |
874 | | - | |
875 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
876 | 889 | | |
877 | 890 | | |
878 | 891 | | |
879 | 892 | | |
880 | 893 | | |
881 | 894 | | |
882 | | - | |
| 895 | + | |
883 | 896 | | |
884 | 897 | | |
885 | 898 | | |
| |||
1159 | 1172 | | |
1160 | 1173 | | |
1161 | 1174 | | |
1162 | | - | |
| 1175 | + | |
1163 | 1176 | | |
1164 | 1177 | | |
1165 | 1178 | | |
| |||
1171 | 1184 | | |
1172 | 1185 | | |
1173 | 1186 | | |
1174 | | - | |
| 1187 | + | |
1175 | 1188 | | |
1176 | 1189 | | |
1177 | 1190 | | |
| |||
1228 | 1241 | | |
1229 | 1242 | | |
1230 | 1243 | | |
1231 | | - | |
| 1244 | + | |
1232 | 1245 | | |
1233 | 1246 | | |
1234 | | - | |
| 1247 | + | |
1235 | 1248 | | |
1236 | 1249 | | |
1237 | 1250 | | |
| |||
1241 | 1254 | | |
1242 | 1255 | | |
1243 | 1256 | | |
1244 | | - | |
| 1257 | + | |
1245 | 1258 | | |
1246 | 1259 | | |
1247 | | - | |
| 1260 | + | |
1248 | 1261 | | |
1249 | 1262 | | |
1250 | 1263 | | |
1251 | 1264 | | |
1252 | | - | |
| 1265 | + | |
1253 | 1266 | | |
1254 | 1267 | | |
1255 | 1268 | | |
| |||
1262 | 1275 | | |
1263 | 1276 | | |
1264 | 1277 | | |
1265 | | - | |
| 1278 | + | |
1266 | 1279 | | |
1267 | 1280 | | |
1268 | 1281 | | |
1269 | 1282 | | |
1270 | 1283 | | |
1271 | | - | |
| 1284 | + | |
1272 | 1285 | | |
1273 | 1286 | | |
1274 | 1287 | | |
| |||
1543 | 1556 | | |
1544 | 1557 | | |
1545 | 1558 | | |
| 1559 | + | |
1546 | 1560 | | |
1547 | 1561 | | |
1548 | 1562 | | |
| |||
1612 | 1626 | | |
1613 | 1627 | | |
1614 | 1628 | | |
1615 | | - | |
| 1629 | + | |
1616 | 1630 | | |
1617 | 1631 | | |
1618 | 1632 | | |
| |||
1693 | 1707 | | |
1694 | 1708 | | |
1695 | 1709 | | |
1696 | | - | |
| 1710 | + | |
1697 | 1711 | | |
1698 | 1712 | | |
1699 | 1713 | | |
| |||
1741 | 1755 | | |
1742 | 1756 | | |
1743 | 1757 | | |
1744 | | - | |
| 1758 | + | |
1745 | 1759 | | |
1746 | | - | |
| 1760 | + | |
1747 | 1761 | | |
1748 | 1762 | | |
1749 | 1763 | | |
| |||
1831 | 1845 | | |
1832 | 1846 | | |
1833 | 1847 | | |
1834 | | - | |
| 1848 | + | |
1835 | 1849 | | |
1836 | | - | |
| 1850 | + | |
1837 | 1851 | | |
1838 | 1852 | | |
1839 | 1853 | | |
| |||
0 commit comments