[Ocfs2-commits] manish commits r1187 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Jun 22 18:57:59 CDT 2004
Author: manish
Date: 2004-06-22 17:57:57 -0500 (Tue, 22 Jun 2004)
New Revision: 1187
Modified:
trunk/src/super.c
Log:
Remove mount_cnt_inc crack.
Modified: trunk/src/super.c
===================================================================
--- trunk/src/super.c 2004-06-22 22:45:23 UTC (rev 1186)
+++ trunk/src/super.c 2004-06-22 22:57:57 UTC (rev 1187)
@@ -78,10 +78,6 @@
spinlock_t mount_cnt_lock;
__u32 mount_cnt; /* Number of volumes currently mounted */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
-int mount_cnt_inc; /* true when mount_cnt is inc by 1 during first mount */
-#endif
-
char *node_name = NULL;
__u32 node_number = OCFS_INVALID_NODE_NUM;
__u32 debug_context = 0;
@@ -402,16 +398,9 @@
};
#else
-
static struct super_block *ocfs_read_super (struct super_block *sb, void *data, int silent)
{
- MOD_INC_USE_COUNT;
-
- if (ocfs_fill_super(sb, data, silent) < 0) {
- MOD_DEC_USE_COUNT;
- return NULL;
- }
- return sb;
+ return (ocfs_fill_super(sb, data, silent) < 0) ? NULL : sb;
}
static DECLARE_FSTYPE (ocfs_fs_type, "ocfs2", ocfs_read_super, FS_REQUIRES_DEV);
@@ -532,9 +521,6 @@
spin_lock_init (&mount_cnt_lock);
spin_lock (&mount_cnt_lock);
mount_cnt = 0;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
- mount_cnt_inc = 0;
-#endif
spin_unlock (&mount_cnt_lock);
spin_lock_init (&OcfsGlobalCtxt.comm_seq_lock);
@@ -688,9 +674,6 @@
ocfs_sync_blockdev(sb);
LOG_TRACE_STR ("put super... do nothing! DONE!!!!");
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
- MOD_DEC_USE_COUNT;
-#endif
LOG_EXIT ();
LOG_CLEAR_CONTEXT();
@@ -1002,13 +985,6 @@
LOG_ERROR_ARGS ("unable to launch ocfs2lsnr thread, error=%d", child_pid);
goto leave;
}
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
- if (mount_cnt_inc == 0) {
- MOD_INC_USE_COUNT;
- mount_cnt_inc = 1;
- }
-#endif
}
spin_unlock (&mount_cnt_lock);
@@ -1192,15 +1168,6 @@
kfree(osb);
sb->s_dev = 0;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
- spin_lock (&mount_cnt_lock);
- if (!mount_cnt && mount_cnt_inc) {
- MOD_DEC_USE_COUNT;
- mount_cnt_inc = 0;
- }
- spin_unlock (&mount_cnt_lock);
-#endif
-
leave:
if (AcquiredOSB) {
up (&(osb->osb_res));
More information about the Ocfs2-commits
mailing list