aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/swapfile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 4a986127f15e..84374d8cf814 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -2161,7 +2161,11 @@ void swap_shmem_alloc(swp_entry_t entry)
2161} 2161}
2162 2162
2163/* 2163/*
2164 * increase reference count of swap entry by 1. 2164 * Increase reference count of swap entry by 1.
2165 * Returns 0 for success, or -ENOMEM if a swap_count_continuation is required
2166 * but could not be atomically allocated. Returns 0, just as if it succeeded,
2167 * if __swap_duplicate() fails for another reason (-EINVAL or -ENOENT), which
2168 * might occur if a page table entry has got corrupted.
2165 */ 2169 */
2166int swap_duplicate(swp_entry_t entry) 2170int swap_duplicate(swp_entry_t entry)
2167{ 2171{