diff mbox series

[f2fs-dev] f2fs: remove unneeded set_page_private() in f2fs_delete_entry()

Message ID 20230410022145.1840993-1-chao@kernel.org (mailing list archive)
State New
Headers show
Series [f2fs-dev] f2fs: remove unneeded set_page_private() in f2fs_delete_entry() | expand

Commit Message

Chao Yu April 10, 2023, 2:21 a.m. UTC
As detach_page_private() should have reset page's private field.

Signed-off-by: Chao Yu <chao@kernel.org>
---
 fs/f2fs/dir.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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