patch-2.3.38 linux/drivers/block/z2ram.c
Next file: linux/drivers/cdrom/aztcd.c
Previous file: linux/drivers/block/xd.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Jan 7 11:38:05 2000
- Orig file:
v2.3.37/linux/drivers/block/z2ram.c
- Orig date:
Tue Dec 14 01:27:23 1999
diff -u --recursive --new-file v2.3.37/linux/drivers/block/z2ram.c linux/drivers/block/z2ram.c
@@ -331,22 +331,10 @@
return 0;
}
-static struct file_operations z2_fops =
+static struct block_device_operations z2_fops =
{
- NULL, /* lseek - default */
- block_read, /* read - general block-dev read */
- block_write, /* write - general block-dev write */
- NULL, /* readdir - bad */
- NULL, /* poll */
- NULL, /* ioctl */
- NULL, /* mmap */
- z2_open, /* open */
- NULL, /* flush */
- z2_release, /* release */
- block_fsync, /* fsync */
- NULL, /* fasync */
- NULL, /* check_media_change */
- NULL, /* revalidate */
+ open: z2_open,
+ release: z2_release,
};
int __init
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)