projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/damon/lru_sort: avoid divide-by-zero in hot threshold calculation
[platform/kernel/linux-starfive.git]
/
mm
/
zswap.c
diff --git
a/mm/zswap.c
b/mm/zswap.c
index
083c693
..
37d2b1c
100644
(file)
--- a/
mm/zswap.c
+++ b/
mm/zswap.c
@@
-1383,8
+1383,8
@@
reject:
shrink:
pool = zswap_pool_last_get();
- if (pool)
-
queue_work(shrink_wq, &pool->shrink_work
);
+ if (pool
&& !queue_work(shrink_wq, &pool->shrink_work)
)
+
zswap_pool_put(pool
);
goto reject;
}