[Ocfs2-devel] [PATCH] cleanup read_super ifdef mess a little

Christoph Hellwig hch at lst.de
Sun Jun 20 17:38:56 CDT 2004


Index: src/super.c
===================================================================
--- src/super.c	(revision 1156)
+++ src/super.c	(working copy)
@@ -323,11 +301,7 @@
 	return(status);
 } /* ocfs_release_system_inodes */
 
-/*
- * __ocfs_read_super()
- *
- */
-static int __ocfs_read_super(struct super_block *sb, void *data, int silent)
+static int ocfs_fill_super(struct super_block *sb, void *data, int silent)
 {
 	struct dentry *root;
 	int status;
@@ -396,17 +370,12 @@
 
 	LOG_EXIT_STATUS(status);
 	return status;
-}				/* __ocfs_read_super */
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-static int ocfs_read_super (struct super_block *sb, void *data, int silent)
-{
-	return __ocfs_read_super(sb, data, silent);
 }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 static struct super_block *ocfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data)
 {
-	return get_sb_bdev(fs_type, flags, dev_name, data, ocfs_read_super);
+	return get_sb_bdev(fs_type, flags, dev_name, data, ocfs_fill_super);
 }
 
 static struct file_system_type ocfs_fs_type = {
@@ -427,7 +396,7 @@
 {
 	MOD_INC_USE_COUNT;
 
-	if (__ocfs_read_super(sb, data, silent) < 0) {
+	if (ocfs_fill_super(sb, data, silent) < 0) {
 		MOD_DEC_USE_COUNT;
 		return NULL;
 	}


More information about the Ocfs2-devel mailing list