Skip to contentSkip to conversation

make ocfs2_create_new_lock() static

PATCH In review Adrian Bunk 2 participants 2 messages Nov 19, 2006 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make ocfs2_create_new_lock() static

This patch makes the needlessly global ocfs2_create_new_lock() static.

---

 fs/ocfs2/dlmglue.c |    8 ++++----
 fs/ocfs2/dlmglue.h |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)
fs/ocfs2/dlmglue.h renamed from fs/ocfs2/dlmglue.h.old +0 -2
@@ -68,8 +68,6 @@
 				u64 parent, struct inode *inode);
 void ocfs2_lock_res_free(struct ocfs2_lock_res *res);
 int ocfs2_create_new_inode_locks(struct inode *inode);
-int ocfs2_create_new_lock(struct ocfs2_super *osb,
-			  struct ocfs2_lock_res *lockres, int ex, int local);
 int ocfs2_drop_inode_locks(struct inode *inode);
 int ocfs2_data_lock_full(struct inode *inode,
 			 int write,
fs/ocfs2/dlmglue.c renamed from fs/ocfs2/dlmglue.c.old +4 -4
@@ -1063,10 +1063,10 @@
 	mlog_exit_void();
 }
 
-int ocfs2_create_new_lock(struct ocfs2_super *osb,
-			  struct ocfs2_lock_res *lockres,
-			  int ex,
-			  int local)
+static int ocfs2_create_new_lock(struct ocfs2_super *osb,
+				 struct ocfs2_lock_res *lockres,
+				 int ex,
+				 int local)
 {
 	int level =  ex ? LKM_EXMODE : LKM_PRMODE;
 	unsigned long flags;
#1 lore raw
Quoted 1 line · Adrian Bunk

This patch makes the needlessly global ocfs2_create_new_lock() static.

Ok, thanks Adrian.

	--Mark

--
Mark Fasheh
Senior Software Developer, Oracle
[email protected]