[PATCH] f2fs: remove unneeded set_page_private() in f2fs_delete_entry()
From: Chao Yu
Date: Sun Apr 09 2023 - 22:21:59 EST
As detach_page_private() should have reset page's private field.
Signed-off-by: Chao Yu <chao@xxxxxxxxxx>
---
fs/f2fs/dir.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index d6dd8327e82d..d5c7c8e55eb4 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -912,7 +912,6 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page,
f2fs_remove_dirty_inode(dir);
detach_page_private(page);
- set_page_private(page, 0);
}
f2fs_put_page(page, 1);
--
2.25.1