diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-28 20:06:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-07 17:35:32 +0100 |
commit | ba6fbb2cee3cafc5b51120021c3dfea002870108 (patch) | |
tree | 668ef3831a8ed5cfd35e34871676e5d2451ccec8 /src/core/swap.c | |
parent | swap: flush out state when activating a unit, not when deactivating it (diff) | |
download | systemd-ba6fbb2cee3cafc5b51120021c3dfea002870108.tar.xz systemd-ba6fbb2cee3cafc5b51120021c3dfea002870108.zip |
swap: fix misplaced comment
Diffstat (limited to 'src/core/swap.c')
-rw-r--r-- | src/core/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/swap.c b/src/core/swap.c index bbcf886458..50da43f8a7 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1160,13 +1160,13 @@ static int swap_dispatch_io(sd_event_source *source, int fd, uint32_t revents, v Swap *swap = SWAP(u); if (!swap->is_active) { - /* This has just been deactivated */ swap_unset_proc_swaps(swap); switch (swap->state) { case SWAP_ACTIVE: + /* This has just been deactivated */ swap_enter_dead(swap, SWAP_SUCCESS); break; |