Repository navigation
Commit 461cb41
GFS2: Simplify gfs2_write_alloc_required
Function gfs2_write_alloc_required always returned zero as its
return code. Therefore, it doesn't need to return a return code
at all. Given that, we can use the return value to return whether
or not the dinode needs block allocations rather than passing
that value in, which in turn simplifies a bunch of error checking.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>1 parent ba6e936 commit 461cb41
6 files changed
Lines changed: 14 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 637 | + | |
640 | 638 | | |
641 | 639 | | |
642 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
1247 | | - | |
1248 | 1247 | | |
1249 | | - | |
| 1248 | + | |
1250 | 1249 | | |
1251 | 1250 | | |
1252 | 1251 | | |
1253 | | - | |
| 1252 | + | |
1254 | 1253 | | |
1255 | 1254 | | |
1256 | 1255 | | |
1257 | 1256 | | |
1258 | 1257 | | |
1259 | 1258 | | |
1260 | 1259 | | |
1261 | | - | |
1262 | | - | |
1263 | 1260 | | |
1264 | 1261 | | |
1265 | 1262 | | |
1266 | 1263 | | |
1267 | 1264 | | |
1268 | 1265 | | |
1269 | | - | |
| 1266 | + | |
1270 | 1267 | | |
1271 | 1268 | | |
1272 | 1269 | | |
1273 | | - | |
1274 | 1270 | | |
1275 | 1271 | | |
1276 | 1272 | | |
1277 | 1273 | | |
1278 | 1274 | | |
1279 | 1275 | | |
1280 | | - | |
| 1276 | + | |
1281 | 1277 | | |
1282 | 1278 | | |
1283 | 1279 | | |
1284 | 1280 | | |
1285 | 1281 | | |
1286 | 1282 | | |
1287 | 1283 | | |
1288 | | - | |
| 1284 | + | |
1289 | 1285 | | |
1290 | 1286 | | |
1291 | 1287 | | |
1292 | 1288 | | |
1293 | | - | |
1294 | 1289 | | |
1295 | 1290 | | |
1296 | 1291 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
| |||
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
367 | | - | |
368 | | - | |
| 366 | + | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
791 | | - | |
792 | 790 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
| 791 | + | |
| 792 | + | |
799 | 793 | | |
800 | 794 | | |
801 | 795 | | |
| |||
1584 | 1578 | | |
1585 | 1579 | | |
1586 | 1580 | | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
| 1581 | + | |
1591 | 1582 | | |
1592 | 1583 | | |
1593 | 1584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
| |||
352 | 350 | | |
353 | 351 | | |
354 | 352 | | |
355 | | - | |
356 | | - | |
| 353 | + | |
357 | 354 | | |
358 | | - | |
| 355 | + | |
359 | 356 | | |
360 | 357 | | |
361 | | - | |
| 358 | + | |
362 | 359 | | |
363 | 360 | | |
364 | 361 | | |
| |||
0 commit comments