summaryrefslogtreecommitdiffstats
path: root/mm/swap_state.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-04-19 04:00:00 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-04-19 04:00:00 +0000
commit46e045034336a2cc90c1798cd7cc07af744ddfd6 (patch)
tree3b9b51fc482e729f663d25333e77fbed9aaa939a /mm/swap_state.c
parent31dc59d503a02e84c4de98826452acaeb56dc15a (diff)
Merge with Linux 2.3.99-pre4.
Diffstat (limited to 'mm/swap_state.c')
-rw-r--r--mm/swap_state.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c
index 44adf8bdd..defe9b463 100644
--- a/mm/swap_state.c
+++ b/mm/swap_state.c
@@ -88,6 +88,9 @@ void __delete_from_swap_cache(struct page *page)
*/
void delete_from_swap_cache_nolock(struct page *page)
{
+ if (!PageLocked(page))
+ BUG();
+
if (block_flushpage(page, 0))
lru_cache_del(page);
@@ -122,8 +125,8 @@ void free_page_and_swap_cache(struct page *page)
}
UnlockPage(page);
}
-
- clear_bit(PG_swap_entry, &page->flags);
+
+ ClearPageSwapEntry(page);
__free_page(page);
}