Use BBSIZE / PAGE_SIZE, instead of 2, in swap_pager.c. Don't trim the first BBSIZE bytes, swapon_trim, in swapon.c.
Details
- Reviewers
alc markj - Group Reviewers
manpages - Commits
- rS351064: swap_pager.c reserves 2 blocks for a bsd label. Change that 2 to the
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| sys/vm/vm_param.h | ||
|---|---|---|
| 127 ↗ | (On Diff #60591) | I believe you can use BBSIZE from sys/disklabel.h instead. |
Make associated manpage fixes, including a clumsy attempt to address a savecore issue.
| sbin/swapon/swapon.8 | ||
|---|---|---|
| 94–97 | The crash dump will still be deleted by the -E option. The late option will simply delay the execution of swapon(8) until after savecore(8) has copied the crash dump to another location. | |
| share/man/man5/fstab.5 | ||
|---|---|---|
| 250 | I would revert back to using the word "blocks" here. | |
| sys/vm/swap_pager.c | ||
|---|---|---|
| 2305–2307 | Consider the possibility that PAGE_SIZE is greater than BBSIZE. (We still barely support one architecture, sparc64, where they are equal.) I think that howmany(BBSIZE, PAGE_SIZE) will "do the right thing." | |
| sys/vm/swap_pager.c | ||
|---|---|---|
| 2324 | This should also use howmany(BBSIZE, PAGE_SIZE). | |
| sbin/swapon/swapon.8 | ||
|---|---|---|
| 93 | This sentence has become long enough that I would recommend splitting it into two: "... command. This command marks all blocks ... | |
| 94–99 | My recollection is that the style guidelines for man pages say that new sentences should start on their own line in the first column. "This marking can erase a crash dump. | |
| share/man/man5/fstab.5 | ||
| 249 | Ditto: "... command to the device. This command marks ... | |
| share/man/man5/fstab.5 | ||
|---|---|---|
| 260 | Shouldn't ".Dq late" be one line? | |
| head/sys/vm/swap_pager.c | ||
|---|---|---|
| 2421 ↗ | (On Diff #60813) | Which one is a better value to pass here, 0 or howmany(BBSIZE, PAGE_SIZE) ? I think behavior is the same regardless of the value given blist_free(sp->sw_blist, howmany(BBSIZE, PAGE_SIZE), nblks - howmany(BBSIZE, PAGE_SIZE)) was done. |