From: Joseph Qi Date: Sun, 26 Jan 2020 09:48:41 +0800 Subject: [Ocfs2-devel] [PATCH] OCFS2: remove dlm_lock_is_remote In-Reply-To: <1579578203-254451-1-git-send-email-alex.shi@linux.alibaba.com> References: <1579578203-254451-1-git-send-email-alex.shi@linux.alibaba.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alex Shi , Andrew Morton Cc: Mark Fasheh , Joel Becker , Kate Stewart , Greg Kroah-Hartman , Thomas Gleixner , Richard Fontana , ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org On 20/1/21 11:43, Alex Shi wrote: > This macros is also not used from it was introduced. better to remove > it. > > Signed-off-by: Alex Shi > Cc: Mark Fasheh > Cc: Joel Becker > Cc: Joseph Qi > Cc: Kate Stewart > Cc: Greg Kroah-Hartman > Cc: Thomas Gleixner > Cc: Richard Fontana > Cc: ocfs2-devel at oss.oracle.com > Cc: linux-kernel at vger.kernel.org Acked-by: Joseph Qi > --- > fs/ocfs2/dlm/dlmthread.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c > index 2dd9727537fe..0da9ffc40a88 100644 > --- a/fs/ocfs2/dlm/dlmthread.c > +++ b/fs/ocfs2/dlm/dlmthread.c > @@ -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) >