Skip to contentSkip to conversation

OCFS2: remove dlm_lock_is_remote

PATCH Applied Alex Shi 2 participants 2 messages Jan 21, 2020 – Jan 26, 2020 OCFS2

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 OCFS2: remove dlm_lock_is_remote

This macros is also not used from it was introduced. better to remove it.

Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Joseph Qi <[email protected]>
Cc Kate Stewart <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Richard Fontana <[email protected]>
---
 fs/ocfs2/dlm/dlmthread.c | 2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/dlm/dlmthread.c +0 -2
index 2dd9727537fe..0da9ffc40a88 100644
@@ -39,8 +39,6 @@
 static int dlm_thread(void *data);
 static void dlm_flush_asts(struct dlm_ctxt *dlm);
 
-#define dlm_lock_is_remote(dlm, lock)     ((lock)->ml.node != (dlm)->node_num)
-
 /* will exit holding res->spinlock, but may drop in function */
 /* waits until flags are cleared on res->state */
 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags)
Signature · 1 line
1.8.3.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Alex Shi

This macros is also not used from it was introduced. better to remove it.

Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Joseph Qi <[email protected]>
Cc Kate Stewart <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Richard Fontana <[email protected]>
Cc ocfs2-devel at oss.oracle.com
Cc linux-kernel at vger.kernel.org
Quoted 18 lines
---
 fs/ocfs2/dlm/dlmthread.c | 2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/dlm/dlmthread.c +0 -2
index 2dd9727537fe..0da9ffc40a88 100644
@@ -39,8 +39,6 @@
 static int dlm_thread(void *data);
 static void dlm_flush_asts(struct dlm_ctxt *dlm);
 
-#define dlm_lock_is_remote(dlm, lock)     ((lock)->ml.node != (dlm)->node_num)
-
 /* will exit holding res->spinlock, but may drop in function */
 /* waits until flags are cleared on res->state */
 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags)