]> err.no Git - linux-2.6/commitdiff
[2.6 patch] make ocfs2_create_new_lock() static
authorAdrian Bunk <bunk@stusta.de>
Mon, 20 Nov 2006 02:24:28 +0000 (03:24 +0100)
committerMark Fasheh <mark.fasheh@oracle.com>
Sat, 2 Dec 2006 02:26:50 +0000 (18:26 -0800)
This patch makes the needlessly global ocfs2_create_new_lock() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlmglue.c
fs/ocfs2/dlmglue.h

index 8801e41afe8092ad9db9c8c469b5ff1cbfb94fbb..ff8d3dbdeb3134a3f2d560f3e3c8225fd18689dd 100644 (file)
@@ -1063,10 +1063,10 @@ static void ocfs2_cluster_unlock(struct ocfs2_super *osb,
        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;
index 4a2769387229a90cb3e0be5e1abaf56be217382d..75c49ce2be32914e9cbbc4bc2aff2d41341b21b4 100644 (file)
@@ -68,8 +68,6 @@ void ocfs2_dentry_lock_res_init(struct ocfs2_dentry_lock *dl,
                                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,