Commit 5cf036d
jbd2: switch to check format version in superblock directly
We should only check and set extented features if journal format version
is 2, and now we check the in memory copy of the superblock
'journal->j_format_version', which relys on the parameter initialization
sequence, switch to use the h_blocktype in superblock cloud be more
clear.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230315013128.3911115-5-chengzhihao1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 5c5bd1f commit 5cf036d
2 files changed
Lines changed: 21 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
2065 | | - | |
2066 | | - | |
2067 | 2065 | | |
2068 | | - | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2069 | 2071 | | |
2070 | 2072 | | |
2071 | 2073 | | |
| |||
2227 | 2229 | | |
2228 | 2230 | | |
2229 | 2231 | | |
2230 | | - | |
| 2232 | + | |
2231 | 2233 | | |
2232 | 2234 | | |
2233 | 2235 | | |
| |||
2257 | 2259 | | |
2258 | 2260 | | |
2259 | 2261 | | |
2260 | | - | |
2261 | | - | |
2262 | | - | |
2263 | | - | |
2264 | | - | |
| 2262 | + | |
2265 | 2263 | | |
2266 | 2264 | | |
2267 | 2265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1316 | 1327 | | |
1317 | 1328 | | |
1318 | 1329 | | |
1319 | 1330 | | |
1320 | | - | |
| 1331 | + | |
1321 | 1332 | | |
1322 | 1333 | | |
1323 | 1334 | | |
| |||
1335 | 1346 | | |
1336 | 1347 | | |
1337 | 1348 | | |
1338 | | - | |
| 1349 | + | |
1339 | 1350 | | |
1340 | 1351 | | |
1341 | 1352 | | |
| |||
1353 | 1364 | | |
1354 | 1365 | | |
1355 | 1366 | | |
1356 | | - | |
| 1367 | + | |
1357 | 1368 | | |
1358 | 1369 | | |
1359 | 1370 | | |
| |||
0 commit comments