Commit 710c083
committed
bftw: Don't immediately pin open directories
It is undesirable to close a directory that we haven't read yet to free
up cache capacity, but it's worse to fail to open the next directory
because too many upcoming directories are pinned. This could happen
when sorting, because then we can't prioritize the already-opened ones.1 parent 76ffc8d commit 710c083
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
663 | | - | |
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
| |||
1318 | 1316 | | |
1319 | 1317 | | |
1320 | 1318 | | |
1321 | | - | |
| 1319 | + | |
1322 | 1320 | | |
1323 | 1321 | | |
1324 | 1322 | | |
| |||
1328 | 1326 | | |
1329 | 1327 | | |
1330 | 1328 | | |
| 1329 | + | |
1331 | 1330 | | |
1332 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
1333 | 1334 | | |
1334 | 1335 | | |
1335 | 1336 | | |
| |||
1577 | 1578 | | |
1578 | 1579 | | |
1579 | 1580 | | |
1580 | | - | |
| 1581 | + | |
1581 | 1582 | | |
1582 | 1583 | | |
1583 | 1584 | | |
| |||
0 commit comments