[Ocfs2-commits] mfasheh commits r1890 - trunk/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Feb 17 18:12:39 CST 2005


Author: mfasheh
Date: 2005-02-17 18:12:37 -0600 (Thu, 17 Feb 2005)
New Revision: 1890

Modified:
   trunk/fs/ocfs2/cluster/nodemanager.c
   trunk/fs/ocfs2/cluster/nodemanager.h
Log:
* __nm_get_node_by_name doesn't change it's char * argument so make that a
  const char *



Modified: trunk/fs/ocfs2/cluster/nodemanager.c
===================================================================
--- trunk/fs/ocfs2/cluster/nodemanager.c	2005-02-17 23:52:41 UTC (rev 1889)
+++ trunk/fs/ocfs2/cluster/nodemanager.c	2005-02-18 00:12:37 UTC (rev 1890)
@@ -160,7 +160,6 @@
 int nm_get_node_info(char *buf, nm_op *data);
 int nm_get_group_info(char *buf, nm_op *data);
 nm_cluster *nm_get_cluster(void);
-struct inode *nm_get_group_by_name(char *node_name);
 struct inode *nm_get_node_by_name(char *node_name);
 static void nm_do_callbacks(int type, void *ptr1, void *ptr2, u8 idx);
 
@@ -1065,7 +1064,7 @@
 }
 EXPORT_SYMBOL(nm_get_group_node_by_index);
 
-struct inode * __nm_get_node_by_name(char *node_name, int dir)
+struct inode * __nm_get_node_by_name(const char *node_name, int dir)
 {
 	struct dentry *dentry = NULL;
 	struct inode *inode = NULL;

Modified: trunk/fs/ocfs2/cluster/nodemanager.h
===================================================================
--- trunk/fs/ocfs2/cluster/nodemanager.h	2005-02-17 23:52:41 UTC (rev 1889)
+++ trunk/fs/ocfs2/cluster/nodemanager.h	2005-02-18 00:12:37 UTC (rev 1890)
@@ -151,7 +151,7 @@
 
 struct inode * nm_get_group_by_num(u8 group_num);
 struct inode * nm_get_node_by_num(u8 node_num);
-struct inode * __nm_get_node_by_name(char *node_name, int dir);
+struct inode * __nm_get_node_by_name(const char *node_name, int dir);
 struct inode * nm_get_node_by_ip(u32 addr);
 struct inode * nm_get_group_node_by_index(struct inode *group, u8 index);
 
@@ -159,7 +159,7 @@
 {
 	return __nm_get_node_by_name(node_name, 0);
 }
-static inline struct inode * nm_get_group_by_name(char *group_name)
+static inline struct inode * nm_get_group_by_name(const char *group_name)
 {
 	return __nm_get_node_by_name(group_name, 1);
 }



More information about the Ocfs2-commits mailing list