From: Joseph Qi <joseph.qi@linux.alibaba.com>
To: Alex Shi <alex.shi@linux.alibaba.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>, Joel Becker <jlbec@evilplan.org>,
Andrew Morton <akpm@linux-foundation.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Kate Stewart <kstewart@linuxfoundation.org>,
ChenGang <cg.chen@huawei.com>,
Thomas Gleixner <tglx@linutronix.de>,
Richard Fontana <rfontana@redhat.com>,
ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] OCFS2: remove unused macros
Date: Sun, 26 Jan 2020 09:43:58 +0800 [thread overview]
Message-ID: <a12fc48c-3165-3519-c2b2-399b06c8b5c6@linux.alibaba.com> (raw)
In-Reply-To: <1579577827-251796-1-git-send-email-alex.shi@linux.alibaba.com>
On 20/1/21 11:37, Alex Shi wrote:
> O2HB_DEFAULT_BLOCK_BITS/DLM_THREAD_MAX_ASTS/DLM_MIGRATION_RETRY_MS and
> OCFS2_MAX_RESV_WINDOW_BITS/OCFS2_MIN_RESV_WINDOW_BITS are
> never used from they were introduced to kernel. so better to remove
> them.
>
> Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
> Cc: Mark Fasheh <mark@fasheh.com>
> Cc: Joel Becker <jlbec@evilplan.org>
> Cc: Joseph Qi <joseph.qi@linux.alibaba.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Kate Stewart <kstewart@linuxfoundation.org>
> Cc: ChenGang <cg.chen@huawei.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Richard Fontana <rfontana@redhat.com>
> Cc: ocfs2-devel@oss.oracle.com
> Cc: linux-kernel@vger.kernel.org
> ---
> fs/ocfs2/cluster/heartbeat.c | 2 --
> fs/ocfs2/dlm/dlmmaster.c | 2 --
> fs/ocfs2/dlm/dlmthread.c | 1 -
> fs/ocfs2/reservations.c | 3 ---
> 4 files changed, 8 deletions(-)
>
> diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
> index a368350d4c27..78cb48d6a596 100644
> --- a/fs/ocfs2/cluster/heartbeat.c
> +++ b/fs/ocfs2/cluster/heartbeat.c
> @@ -101,8 +101,6 @@ struct o2hb_debug_buf {
>
> static struct o2hb_callback *hbcall_from_type(enum o2hb_callback_type type);
>
> -#define O2HB_DEFAULT_BLOCK_BITS 9
> -
> enum o2hb_heartbeat_modes {
> O2HB_HEARTBEAT_LOCAL = 0,
> O2HB_HEARTBEAT_GLOBAL,
> diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
> index 74b768ca1cd8..123b6873d9fa 100644
> --- a/fs/ocfs2/dlm/dlmmaster.c
> +++ b/fs/ocfs2/dlm/dlmmaster.c
> @@ -2751,8 +2751,6 @@ static int dlm_migrate_lockres(struct dlm_ctxt *dlm,
> return ret;
> }
>
> -#define DLM_MIGRATION_RETRY_MS 100
> -
It is no longer used since commit 66effd3c6812 ("ocfs2/dlm: Do not
migrate resource to a node that is leaving the domain").
> /*
> * Should be called only after beginning the domain leave process.
> * There should not be any remaining locks on nonlocal lock resources,
> diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c
> index 61c51c268460..2dd9727537fe 100644
> --- a/fs/ocfs2/dlm/dlmthread.c
> +++ b/fs/ocfs2/dlm/dlmthread.c
> @@ -680,7 +680,6 @@ static void dlm_flush_asts(struct dlm_ctxt *dlm)
>
> #define DLM_THREAD_TIMEOUT_MS (4 * 1000)
> #define DLM_THREAD_MAX_DIRTY 100
> -#define DLM_THREAD_MAX_ASTS 10
>
> static int dlm_thread(void *data)
> {
> diff --git a/fs/ocfs2/reservations.c b/fs/ocfs2/reservations.c
> index 0249e8ca1028..bf3842e34fb9 100644
> --- a/fs/ocfs2/reservations.c
> +++ b/fs/ocfs2/reservations.c
> @@ -33,9 +33,6 @@
>
> static DEFINE_SPINLOCK(resv_lock);
>
> -#define OCFS2_MIN_RESV_WINDOW_BITS 8
> -#define OCFS2_MAX_RESV_WINDOW_BITS 1024
> -
> int ocfs2_dir_resv_allowed(struct ocfs2_super *osb)
> {
> return (osb->osb_resv_level && osb->osb_dir_resv_level);
>
next prev parent reply other threads:[~2020-01-26 1:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-21 3:37 Alex Shi
2020-01-26 1:43 ` Joseph Qi [this message]
2020-02-04 11:08 ` Alex Shi
2020-02-04 11:37 ` Joseph Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a12fc48c-3165-3519-c2b2-399b06c8b5c6@linux.alibaba.com \
--to=joseph.qi@linux.alibaba.com \
--cc=akpm@linux-foundation.org \
--cc=alex.shi@linux.alibaba.com \
--cc=cg.chen@huawei.com \
--cc=gregkh@linuxfoundation.org \
--cc=jlbec@evilplan.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark@fasheh.com \
--cc=ocfs2-devel@oss.oracle.com \
--cc=rfontana@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®