Skip to content

Conversation

@kolyshkin
Copy link
Contributor

this is separated out from #2438 in order to make review easier

Make things faster and code more readable by simplification and code removal.

Please see individual commits for details.

kolyshkin added 2 commits July 3, 2020 14:00
Iterating over the list of subsystems and comparing their names to get an
instance of fs.cgroupFreezer is useless and a waste of time, since it is
a shallow type (i.e. does not have any data/state) and we can create an
instance in place.

Signed-off-by: Kir Kolyshkin <[email protected]>
In here, defer looks like an overkill, since the code is very simple and
we already have an error path.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin changed the title libct/cgroups/fs: simplify/speedup code libct/cgroups/fs: simplify/speedup freezer code Jul 3, 2020
@kolyshkin
Copy link
Contributor Author

@mrunalp @AkihiroSuda PTAL

These changes are next to trivial and I would like them to be merged as they block me working on #2498

@mrunalp mrunalp merged commit e638eda into opencontainers:master Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants