Skip to contentSkip to conversation

mm: zswap: clean up confusing comment

PATCH Applied Randy Dunlap 1 participant 1 message Dec 21, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: zswap: clean up confusing comment

Correct wording and change one duplicated word (it) to "it is".

Fixes 0ab0abcf5115 ("mm/zswap: refactor the get/put routines")
Cc Weijie Yang <[email protected]>
Cc Seth Jennings <[email protected]>
Cc Seth Jennings <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Dan Streetman <[email protected]>
Cc Vitaly Wool <[email protected]>
---
 mm/zswap.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
mm/zswap.c +3 -3
@@ -1022,10 +1022,10 @@ static int zswap_writeback_entry(struct
 
 	/*
 	* if we get here due to ZSWAP_SWAPCACHE_EXIST
-	* a load may happening concurrently
-	* it is safe and okay to not free the entry
+	* a load may be happening concurrently.
+	* it is safe and okay to not free the entry.
 	* if we free the entry in the following put
-	* it it either okay to return !0
+	* it is also okay to return !0
 	*/
 fail:
 	spin_lock(&tree->lock);