patch-2.4.14 linux/drivers/md/lvm.c

Next file: linux/drivers/md/md.c
Previous file: linux/drivers/isdn/isdn_ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/md/lvm.c linux/drivers/md/lvm.c
@@ -357,6 +357,7 @@
 
 static struct file_operations lvm_chr_fops =
 {
+	owner:		THIS_MODULE,
 	open:		lvm_chr_open,
 	release:	lvm_chr_close,
 	ioctl:		lvm_chr_ioctl,
@@ -366,6 +367,7 @@
 /* block device operations structure needed for 2.3.38? and above */
 static struct block_device_operations lvm_blk_dops =
 {
+	owner:		THIS_MODULE,
 	open: 		lvm_blk_open,
 	release:	lvm_blk_close,
 	ioctl:		lvm_blk_ioctl,
@@ -544,8 +546,6 @@
 
 	lvm_chr_open_count++;
 
-	MOD_INC_USE_COUNT;
-
 	return 0;
 } /* lvm_chr_open() */
 
@@ -786,8 +786,6 @@
 		wake_up_interruptible(&lvm_wait);
 	}
 
-	MOD_DEC_USE_COUNT;
-
 	return 0;
 } /* lvm_chr_close() */
 
@@ -840,8 +838,6 @@
 		if (lv_ptr->lv_open == 0) vg_ptr->lv_open++;
 		lv_ptr->lv_open++;
 
-		MOD_INC_USE_COUNT;
-
 #ifdef DEBUG_LVM_BLK_OPEN
 		printk(KERN_DEBUG
 		       "%s -- lvm_blk_open MINOR: %d  VG#: %d  LV#: %d  size: %d\n",
@@ -1042,8 +1038,6 @@
 
 	if (lv_ptr->lv_open == 1) vg_ptr->lv_open--;
 	lv_ptr->lv_open--;
-
-	MOD_DEC_USE_COUNT;
 
 	return 0;
 } /* lvm_blk_close() */

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