public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Chen Ni <nichen@iscas.ac.cn>
Cc: SeongJae Park <sj@kernel.org>,
	linux-mm@kvack.org, akpm@linux-foundation.org, chrisl@kernel.org,
	kasong@tencent.com, shikemeng@huaweicloud.com, nphamcs@gmail.com,
	bhe@redhat.com, baohua@kernel.org, youngjun.park@lge.com
Subject: Re: [PATCH] mm/swapfile: remove duplicate include of swap_table.h
Date: Wed, 18 Mar 2026 22:10:13 -0700	[thread overview]
Message-ID: <20260319051014.98845-1-sj@kernel.org> (raw)
In-Reply-To: <20260318043849.399266-1-nichen@iscas.ac.cn>

On Wed, 18 Mar 2026 12:38:49 +0800 Chen Ni <nichen@iscas.ac.cn> wrote:

> Remove duplicate inclusion of swap_table.h in swapfile.c to clean up
> redundant code.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Reviewed-by: SeongJae Park <sj@kernel.org>

> ---
>  mm/swapfile.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/mm/swapfile.c b/mm/swapfile.c
> index 35f1b58d0bb1..9174f1eeffb0 100644
> --- a/mm/swapfile.c
> +++ b/mm/swapfile.c
> @@ -48,7 +48,6 @@
>  #include <linux/swap_cgroup.h>
>  #include "swap_table.h"
>  #include "internal.h"
> -#include "swap_table.h"
>  #include "swap.h"

FWIW, I once thought it might better to remove the upper duplicate, because it
will make the files look alphabetically sorted and therefore easier to read.
But I realized "swap.h" should come before "swap_table.h" to really
alphabetically sorted.  Anyway that's trivial and I don't really care that, so
decided to just give my Reviewed-by: as above.


Thanks,
SJ

[...]


      reply	other threads:[~2026-03-19  5:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-18  4:38 [PATCH] mm/swapfile: remove duplicate include of swap_table.h Chen Ni
2026-03-19  5:10 ` SeongJae Park [this message]

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=20260319051014.98845-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=baohua@kernel.org \
    --cc=bhe@redhat.com \
    --cc=chrisl@kernel.org \
    --cc=kasong@tencent.com \
    --cc=linux-mm@kvack.org \
    --cc=nichen@iscas.ac.cn \
    --cc=nphamcs@gmail.com \
    --cc=shikemeng@huaweicloud.com \
    --cc=youngjun.park@lge.com \
    /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