patch-2.3.22 linux/mm/swap_state.c
Next file: linux/net/Config.in
Previous file: linux/mm/page_io.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Oct 14 08:41:19 1999
- Orig file:
v2.3.21/linux/mm/swap_state.c
- Orig date:
Tue Aug 31 17:29:15 1999
diff -u --recursive --new-file v2.3.21/linux/mm/swap_state.c linux/mm/swap_state.c
@@ -13,6 +13,7 @@
#include <linux/swapctl.h>
#include <linux/init.h>
#include <linux/pagemap.h>
+#include <linux/smp_lock.h>
#include <asm/pgtable.h>
@@ -234,7 +235,9 @@
page_address(page), page_count(page), entry);
#endif
remove_from_swap_cache (page);
+ lock_kernel();
swap_free (entry);
+ unlock_kernel();
}
static void delete_from_swap_cache_nolock(struct page *page)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)