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

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