From: Alice Ryhl Date: Wed, 27 Nov 2024 13:53:29 +0000 (+0000) Subject: mm/zswap: add LRU_STOP to comment about dropping the lru lock X-Git-Tag: v6.14-rc1~77^2~319 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a882dd92de83f7d1634dbde6f1d065d6ac73546e;p=thirdparty%2Fkernel%2Flinux.git mm/zswap: add LRU_STOP to comment about dropping the lru lock This function has been able to return LRU_STOP since commit b49547ade38a ("mm/zswap: stop lru list shrinking when encounter warm region"). To reduce confusion, update the comment to also list LRU_STOP as an option. Link: https://lkml.kernel.org/r/20241127-lru-stop-comment-v1-1-f54a7cba9429@google.com Signed-off-by: Alice Ryhl Acked-by: Johannes Weiner Reviewed-by: Chengming Zhou Cc: Alice Ryhl Cc: Nhat Pham Cc: Yosry Ahmed Signed-off-by: Andrew Morton --- diff --git a/mm/zswap.c b/mm/zswap.c index 30f5a27a68620..167ae641379f5 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -1186,7 +1186,7 @@ static enum lru_status shrink_memcg_cb(struct list_head *item, struct list_lru_o /* * It's safe to drop the lock here because we return either - * LRU_REMOVED_RETRY or LRU_RETRY. + * LRU_REMOVED_RETRY, LRU_RETRY or LRU_STOP. */ spin_unlock(&l->lock);