From: David Hildenbrand <david@redhat.com>
To: Kefeng Wang <wangkefeng.wang@huawei.com>,
willy@infradead.org, Andrew Morton <akpm@linux-foundation.org>
Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm: remove __set_page_dirty_nobuffers()
Date: Wed, 27 Mar 2024 18:19:43 +0100 [thread overview]
Message-ID: <90ebe320-bbe9-4dbc-9324-9dd12291b211@redhat.com> (raw)
In-Reply-To: <20240327143008.3739435-1-wangkefeng.wang@huawei.com>
On 27.03.24 15:30, Kefeng Wang wrote:
> There are no more callers of __set_page_dirty_nobuffers(), remove it.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
> include/linux/pagemap.h | 1 -
> mm/folio-compat.c | 6 ------
> 2 files changed, 7 deletions(-)
>
> diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
> index 35636e67e2e1..9e988f6f0bb0 100644
> --- a/include/linux/pagemap.h
> +++ b/include/linux/pagemap.h
> @@ -1163,7 +1163,6 @@ static inline void folio_cancel_dirty(struct folio *folio)
> bool folio_clear_dirty_for_io(struct folio *folio);
> bool clear_page_dirty_for_io(struct page *page);
> void folio_invalidate(struct folio *folio, size_t offset, size_t length);
> -int __set_page_dirty_nobuffers(struct page *page);
> bool noop_dirty_folio(struct address_space *mapping, struct folio *folio);
>
> #ifdef CONFIG_MIGRATION
> diff --git a/mm/folio-compat.c b/mm/folio-compat.c
> index 50412014f16f..f31e0ce65b11 100644
> --- a/mm/folio-compat.c
> +++ b/mm/folio-compat.c
> @@ -58,12 +58,6 @@ bool set_page_dirty(struct page *page)
> }
> EXPORT_SYMBOL(set_page_dirty);
>
> -int __set_page_dirty_nobuffers(struct page *page)
> -{
> - return filemap_dirty_folio(page_mapping(page), page_folio(page));
> -}
> -EXPORT_SYMBOL(__set_page_dirty_nobuffers);
> -
> bool clear_page_dirty_for_io(struct page *page)
> {
> return folio_clear_dirty_for_io(page_folio(page));
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2024-03-27 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-27 14:30 [PATCH] mm: remove __set_page_dirty_nobuffers() Kefeng Wang
2024-03-27 17:19 ` David Hildenbrand [this message]
2024-03-27 18:53 ` Matthew Wilcox
2024-03-27 19:04 ` Vishal Moola
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=90ebe320-bbe9-4dbc-9324-9dd12291b211@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).