lkml.org 
[lkml]   [2020]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH V2 0/9] Introduce attach/clear_page_private to cleanup code
On Thu, Apr 30, 2020 at 11:44:41PM +0200, Guoqing Jiang wrote:
> include/linux/pagemap.h: introduce attach/clear_page_private
> md: remove __clear_page_buffers and use attach/clear_page_private
> btrfs: use attach/clear_page_private
> fs/buffer.c: use attach/clear_page_private
> f2fs: use attach/clear_page_private
> iomap: use attach/clear_page_private
> ntfs: replace attach_page_buffers with attach_page_private
> orangefs: use attach/clear_page_private
> buffer_head.h: remove attach_page_buffers

I think mm/migrate.c could also use this:

ClearPagePrivate(page);
set_page_private(newpage, page_private(page));
set_page_private(page, 0);
put_page(page);
get_page(newpage);

\
 
 \ /
  Last update: 2020-05-02 00:17    [W:0.147 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site