patch-2.1.79 linux/fs/buffer.c
Next file: linux/fs/coda/cache.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Jan 12 14:33:20 1998
- Orig file:
v2.1.78/linux/fs/buffer.c
- Orig date:
Tue Jan 6 09:37:36 1998
diff -u --recursive --new-file v2.1.78/linux/fs/buffer.c linux/fs/buffer.c
@@ -1319,8 +1319,13 @@
{
if (test_and_clear_bit(PG_decr_after, &page->flags))
atomic_dec(&nr_async_pages);
- if (test_and_clear_bit(PG_swap_unlock_after, &page->flags))
- swap_after_unlock_page(page->pg_swap_entry);
+ if (test_and_clear_bit(PG_swap_unlock_after, &page->flags)) {
+ /*
+ * We're doing a swap, so check that this page is
+ * swap-cached and do the necessary cleanup.
+ */
+ swap_after_unlock_page(page->offset);
+ }
if (test_and_clear_bit(PG_free_after, &page->flags))
__free_page(page);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov