summaryrefslogtreecommitdiff
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-28 20:06:55 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-07 17:35:32 +0100
commitba6fbb2cee3cafc5b51120021c3dfea002870108 (patch)
tree668ef3831a8ed5cfd35e34871676e5d2451ccec8 /src/core/swap.c
parent31135818e41fb7d779da3a74e4ff50df6a20f2fd (diff)
downloadsystemd-ba6fbb2cee3cafc5b51120021c3dfea002870108.tar.gz
swap: fix misplaced comment
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c2
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;