* [PATCH v2] mm/frontswap: Fix some typos in frontswap.c
@ 2020-04-11 6:40 Ethon Paul
0 siblings, 0 replies; only message in thread
From: Ethon Paul @ 2020-04-11 6:40 UTC (permalink / raw)
To: konrad.wilk, akpm, linux-mm, linux-kernel; +Cc: Ethon Paul
There are some typos in comment, fix them.
s/Fortunatly/Fortunately
s/taked/taken
s/necessory/necessary
s/shink/shrink
Signed-off-by: Ethon Paul <ethp@qq.com>
---
v1->v2:
Fix type in my commit message.
---
mm/frontswap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/frontswap.c b/mm/frontswap.c
index 60bb20e8a951..bfa3a339253e 100644
--- a/mm/frontswap.c
+++ b/mm/frontswap.c
@@ -87,7 +87,7 @@ static inline void inc_frontswap_invalidates(void) { }
*
* This would not guards us against the user deciding to call swapoff right as
* we are calling the backend to initialize (so swapon is in action).
- * Fortunatly for us, the swapon_mutex has been taked by the callee so we are
+ * Fortunately for us, the swapon_mutex has been taken by the callee so we are
* OK. The other scenario where calls to frontswap_store (called via
* swap_writepage) is racing with frontswap_invalidate_area (called via
* swapoff) is again guarded by the swap subsystem.
@@ -413,8 +413,8 @@ static int __frontswap_unuse_pages(unsigned long total, unsigned long *unused,
}
/*
- * Used to check if it's necessory and feasible to unuse pages.
- * Return 1 when nothing to do, 0 when need to shink pages,
+ * Used to check if it's necessary and feasible to unuse pages.
+ * Return 1 when nothing to do, 0 when need to shrink pages,
* error code when there is an error.
*/
static int __frontswap_shrink(unsigned long target_pages,
--
2.24.1 (Apple Git-126)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-11 6:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-11 6:40 [PATCH v2] mm/frontswap: Fix some typos in frontswap.c Ethon Paul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox