All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: remove __set_page_dirty_nobuffers()
@ 2024-03-27 14:30 Kefeng Wang
  2024-03-27 17:19 ` David Hildenbrand
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kefeng Wang @ 2024-03-27 14:30 UTC (permalink / raw)
  To: willy, Andrew Morton; +Cc: linux-fsdevel, linux-mm, Kefeng Wang

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));
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: remove __set_page_dirty_nobuffers()
  2024-03-27 14:30 [PATCH] mm: remove __set_page_dirty_nobuffers() Kefeng Wang
@ 2024-03-27 17:19 ` David Hildenbrand
  2024-03-27 18:53 ` Matthew Wilcox
  2024-03-27 19:04 ` Vishal Moola
  2 siblings, 0 replies; 4+ messages in thread
From: David Hildenbrand @ 2024-03-27 17:19 UTC (permalink / raw)
  To: Kefeng Wang, willy, Andrew Morton; +Cc: linux-fsdevel, linux-mm

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: remove __set_page_dirty_nobuffers()
  2024-03-27 14:30 [PATCH] mm: remove __set_page_dirty_nobuffers() Kefeng Wang
  2024-03-27 17:19 ` David Hildenbrand
@ 2024-03-27 18:53 ` Matthew Wilcox
  2024-03-27 19:04 ` Vishal Moola
  2 siblings, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2024-03-27 18:53 UTC (permalink / raw)
  To: Kefeng Wang; +Cc: Andrew Morton, linux-fsdevel, linux-mm

On Wed, Mar 27, 2024 at 10:30:08PM +0800, Kefeng Wang wrote:
> There are no more callers of __set_page_dirty_nobuffers(), remove it.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Yes, I have this exact patch in my tree, stuck behind a mess of other
patches for the last two months.  It had to wait until the ubifs patches
landed (which removed the last user), and as you can see I've been busy
submitting other patches first.

Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: remove __set_page_dirty_nobuffers()
  2024-03-27 14:30 [PATCH] mm: remove __set_page_dirty_nobuffers() Kefeng Wang
  2024-03-27 17:19 ` David Hildenbrand
  2024-03-27 18:53 ` Matthew Wilcox
@ 2024-03-27 19:04 ` Vishal Moola
  2 siblings, 0 replies; 4+ messages in thread
From: Vishal Moola @ 2024-03-27 19:04 UTC (permalink / raw)
  To: Kefeng Wang; +Cc: willy, Andrew Morton, linux-fsdevel, linux-mm

On Wed, Mar 27, 2024 at 10:30:08PM +0800, Kefeng Wang wrote:
> There are no more callers of __set_page_dirty_nobuffers(), remove it.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-27 19:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 14:30 [PATCH] mm: remove __set_page_dirty_nobuffers() Kefeng Wang
2024-03-27 17:19 ` David Hildenbrand
2024-03-27 18:53 ` Matthew Wilcox
2024-03-27 19:04 ` Vishal Moola

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.