patch-2.4.14 linux/drivers/block/nbd.c

Next file: linux/drivers/block/paride/Config.in
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -82,7 +82,6 @@
 		return -ENODEV;
 
 	nbd_dev[dev].refcnt++;
-	MOD_INC_USE_COUNT;
 	return 0;
 }
 
@@ -467,12 +466,12 @@
 		printk(KERN_ALERT "nbd_release: refcount(%d) <= 0\n", lo->refcnt);
 	lo->refcnt--;
 	/* N.B. Doesn't lo->file need an fput?? */
-	MOD_DEC_USE_COUNT;
 	return 0;
 }
 
 static struct block_device_operations nbd_fops =
 {
+	owner:		THIS_MODULE,
 	open:		nbd_open,
 	release:	nbd_release,
 	ioctl:		nbd_ioctl,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)