iomap-use-attach-detach_page_private.patch removed from -mm tree
The patch titled
Subject: iomap: use attach/detach_page_private
has been removed from the -mm tree. Its filename was
iomap-use-attach-detach_page_private.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Guoqing Jiang <[email protected]>
Subject: iomap: use attach/detach_page_private
Since the new pair function is introduced, we can call them to clean the code in iomap.
Signed-off-by Guoqing Jiang <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Reviewed-by Darrick J. Wong <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Dave Chinner <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/iomap/buffered-io.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-)
fs/iomap/buffered-io.c renamed from fs/iomap/buffered-io.c~iomap-use-attach-detach_page_private +4 -15
@@ -59,24 +59,19 @@ iomap_page_create(struct inode *inode, s* migrate_page_move_mapping() assumes that pages with private data have * their count elevated by 1. */ -get_page (page); -set_page_private (page, (unsigned long )iop); -SetPagePrivate (page); +attach_page_private (page, iop);return iop; }static void iomap_page_release (struct page *page) { -struct iomap_page *iop =to_iomap_page (page); +struct iomap_page *iop =detach_page_private (page);if (!iop)return ;WARN_ON_ONCE (atomic_read (&iop->read_count));WARN_ON_ONCE (atomic_read (&iop->write_count)); -ClearPagePrivate (page); -set_page_private (page,0 ); -put_page (page);kfree (iop); }
@@ -526,14 +521,8 @@ iomap_migrate_page(struct address_spaceif (ret !=MIGRATEPAGE_SUCCESS )return ret; -if (page_has_private (page)) { -ClearPagePrivate (page); -get_page (newpage); -set_page_private (newpage,page_private (page)); -set_page_private (page,0 ); -put_page (page); -SetPagePrivate (newpage); - } +if (page_has_private (page)) +attach_page_private (newpage,detach_page_private (page));if (mode !=MIGRATE_SYNC_NO_COPY )migrate_page_copy (newpage, page);
_
Patches currently in -mm which might be from [email protected] are