Page MenuHomeFreeBSD

tidy up swap_pager_putpages
ClosedPublic

Authored by dougm on Jul 28 2019, 4:38 AM.
Tags
None
Referenced Files
F168517736: D21093.id60211.diff
Fri, Aug 28, 7:25 PM
F168469670: D21093.id60211.diff
Fri, Aug 28, 1:38 PM
F168445099: D21093.id60208.diff
Fri, Aug 28, 9:54 AM
F168443325: D21093.id60211.diff
Fri, Aug 28, 9:36 AM
F168407907: D21093.id60213.diff
Fri, Aug 28, 2:46 AM
Unknown Object (File)
Fri, Aug 21, 3:50 PM
Unknown Object (File)
Fri, Aug 21, 3:50 PM
Unknown Object (File)
Mon, Aug 10, 4:44 PM
Subscribers

Details

Summary

(1) convert the panic() at the function's start into a KASSERT(), (2) convert sync into a bool-type variable async, (3) make the variable definitions style(9) compliant, and (4) move the calls to swp_pager_init_freerange() and swp_pager_freeswapspace() out from under the object lock.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

swap_pager.c
1365 ↗(On Diff #60208)

Isn't this assignment unnecessary?

1384 ↗(On Diff #60208)

I think it's within the scope of this patch to fix the style issue here: Add spaces around the '+'.

1414 ↗(On Diff #60208)

Add spaces around the '+'.

swap_pager.c
1355 ↗(On Diff #60208)

I think that this one line no longer applies.

1364 ↗(On Diff #60208)

I would delete this blank line because the above block comment describes the below initialization to 'async'.

Apply reviewer suggestions. Make another style(9) fix.

swap_pager.c
1335 ↗(On Diff #60211)

Please fix the "whos".

1355–1356 ↗(On Diff #60211)

Please capitalize and punctuate these sentences.

1387 ↗(On Diff #60211)

Shouldn't this be a period instead of a comma?

alc added reviewers: kib, markj.

I think that this is a good change and ready to commit. Give Kostik and Mark a chance to comment.

This revision is now accepted and ready to land.Jul 28 2019, 5:07 PM