patch-1.3.28 linux/mm/swap.c
Next file: linux/mm/vmalloc.c
Previous file: linux/mm/kmalloc.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Mon Sep 18 08:54:12 1995
- Orig file:
v1.3.27/linux/mm/swap.c
- Orig date:
Fri Sep 15 11:13:03 1995
diff -u --recursive --new-file v1.3.27/linux/mm/swap.c linux/mm/swap.c
@@ -41,7 +41,7 @@
static struct swap_info_struct {
unsigned int flags;
- unsigned int swap_device;
+ kdev_t swap_device;
struct inode * swap_file;
unsigned char * swap_map;
unsigned char * swap_lockmap;
@@ -707,7 +707,8 @@
if (bh) {
struct buffer_head *tmp = bh;
do {
- if (tmp->b_list == BUF_SHARED && tmp->b_dev != 0xffff)
+ if (tmp->b_list == BUF_SHARED
+ && tmp->b_dev != B_FREE)
refile_buffer(tmp);
tmp = tmp->b_this_page;
} while (tmp != bh);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this