HomeFreeBSD

Do not leak empty swblk.

Description

Do not leak empty swblk.

In swp_pager_meta_build(), if the requested operation results in
freeing the last swap pointer in the swblk, free the trie node. Other
swap pager code does not expect to find completely empty swblk.

Reviewed by: alc, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Reviewer
alc
Parents
rS323225: Reflect realtime and idle priorities in ps(1) state flags, same like
Branches
Unknown
Tags
Unknown