Skip to contentSkip to conversation

f2fs-use-attach-detach_page_private.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 2, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: f2fs: use attach/detach_page_private
has been removed from the -mm tree. Its filename was
f2fs-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: f2fs: use attach/detach_page_private

Since the new pair function is introduced, we can call them to clean the code in f2fs.h.

---

 fs/f2fs/f2fs.h |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
fs/f2fs/f2fs.h renamed from fs/f2fs/f2fs.h~f2fs-use-attach-detach_page_private +1 -5
@@ -3051,19 +3051,12 @@ static inline void f2fs_set_page_private
 	if (PagePrivate(page))
 		return;
 
-	get_page(page);
-	SetPagePrivate(page);
-	set_page_private(page, data);
+	attach_page_private(page, (void *)data);
 }
 
 static inline void f2fs_clear_page_private(struct page *page)
 {
-	if (!PagePrivate(page))
-		return;