patch-2.1.31 linux/drivers/block/hd.c
Next file: linux/drivers/block/ide-tape.c
Previous file: linux/drivers/block/genhd.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Apr 2 17:43:19 1997
- Orig file:
v2.1.30/linux/drivers/block/hd.c
- Orig date:
Sun Jan 26 02:07:10 1997
diff -u --recursive --new-file v2.1.30/linux/drivers/block/hd.c linux/drivers/block/hd.c
@@ -656,14 +656,14 @@
* Releasing a block device means we sync() it, so that it can safely
* be forgotten about...
*/
-static void hd_release(struct inode * inode, struct file * file)
+static int hd_release(struct inode * inode, struct file * file)
{
int target;
sync_dev(inode->i_rdev);
target = DEVICE_NR(inode->i_rdev);
access_count[target]--;
-
+ return 0;
}
static void hd_geninit(struct gendisk *);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov