[RFC/T PATCH 04/12] mm: remove raw ClearPageLocked() usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



remove the last raw ClearPageLocked() user

Signed-off-by: Peter Zijlstra <[email protected]>
---
 mm/swap_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/mm/swap_state.c
===================================================================
--- linux-2.6.orig/mm/swap_state.c
+++ linux-2.6/mm/swap_state.c
@@ -368,7 +368,7 @@ struct page *read_swap_cache_async(swp_e
 	} while (err != -ENOENT && err != -ENOMEM);
 
 	if (new_page) {
-		ClearPageLocked(new_page);
+		unlock_page(new_page);
 		page_cache_release(new_page);
 	}
 	return found_page;

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux