All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [2.6 patch] make ocfs2_create_new_lock() static
@ 2006-11-20  2:24 ` Adrian Bunk
  0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-11-19 18:24 UTC (permalink / raw)
  To: mark.fasheh, kurt.hackel; +Cc: ocfs2-devel, linux-kernel

This patch makes the needlessly global ocfs2_create_new_lock() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 fs/ocfs2/dlmglue.c |    8 ++++----
 fs/ocfs2/dlmglue.h |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)

--- linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.h.old	2006-11-20 02:04:48.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.h	2006-11-20 02:04:55.000000000 +0100
@@ -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,
--- linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.c.old	2006-11-20 02:05:01.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.c	2006-11-20 02:05:10.000000000 +0100
@@ -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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Ocfs2-devel] Re: [2.6 patch] make ocfs2_create_new_lock() static
  2006-11-20  2:24 ` Adrian Bunk
@ 2006-11-20  3:58   ` Mark Fasheh
  -1 siblings, 0 replies; 4+ messages in thread
From: Mark Fasheh @ 2006-11-19 19:58 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: kurt.hackel, ocfs2-devel, linux-kernel

On Mon, Nov 20, 2006 at 03:24:28AM +0100, Adrian Bunk wrote:
> This patch makes the needlessly global ocfs2_create_new_lock() static.
Ok, thanks Adrian.
	--Mark

--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh@oracle.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [2.6 patch] make ocfs2_create_new_lock() static
@ 2006-11-20  2:24 ` Adrian Bunk
  0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-11-20  2:24 UTC (permalink / raw)
  To: mark.fasheh, kurt.hackel; +Cc: ocfs2-devel, linux-kernel

This patch makes the needlessly global ocfs2_create_new_lock() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 fs/ocfs2/dlmglue.c |    8 ++++----
 fs/ocfs2/dlmglue.h |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)

--- linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.h.old	2006-11-20 02:04:48.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.h	2006-11-20 02:04:55.000000000 +0100
@@ -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,
--- linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.c.old	2006-11-20 02:05:01.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.c	2006-11-20 02:05:10.000000000 +0100
@@ -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;


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.6 patch] make ocfs2_create_new_lock() static
@ 2006-11-20  3:58   ` Mark Fasheh
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Fasheh @ 2006-11-20  3:58 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: kurt.hackel, ocfs2-devel, linux-kernel

On Mon, Nov 20, 2006 at 03:24:28AM +0100, Adrian Bunk wrote:
> This patch makes the needlessly global ocfs2_create_new_lock() static.
Ok, thanks Adrian.
	--Mark

--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh@oracle.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-20  4:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-19 18:24 [Ocfs2-devel] [2.6 patch] make ocfs2_create_new_lock() static Adrian Bunk
2006-11-20  2:24 ` Adrian Bunk
2006-11-19 19:58 ` [Ocfs2-devel] " Mark Fasheh
2006-11-20  3:58   ` Mark Fasheh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.