diff mbox series

[01/12] mm/swap_state.c: fix the obsolete code comment

Message ID 20250205092721.9395-2-bhe@redhat.com (mailing list archive)
State New
Headers show
Series Tiny cleanup and improvements about SWAP code | expand

Commit Message

Baoquan He Feb. 5, 2025, 9:27 a.m. UTC
Since commit 85a1333417a7 ("mm/swap: use dedicated entry for swap in
folio"), there's a dedicated field in folio for swap entry. Let's
update the code comment above add_to_swap_cache() accordingly.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 mm/swap_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/mm/swap_state.c b/mm/swap_state.c
index ca42b2be64d9..59acb55174c8 100644
--- a/mm/swap_state.c
+++ b/mm/swap_state.c
@@ -85,7 +85,7 @@  void *get_shadow_from_swap_cache(swp_entry_t entry)
 
 /*
  * add_to_swap_cache resembles filemap_add_folio on swapper_space,
- * but sets SwapCache flag and private instead of mapping and index.
+ * but sets SwapCache flag and 'swap' instead of mapping and index.
  */
 int add_to_swap_cache(struct folio *folio, swp_entry_t entry,
 			gfp_t gfp, void **shadowp)