f2fs: remove folio_detach_private() in .invalidate_folio and .release_folio
authorChao Yu <chao@kernel.org>
Mon, 10 Apr 2023 02:24:17 +0000 (10:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 17 Apr 2023 21:49:40 +0000 (14:49 -0700)
commit635a52da8605e5d300ec8c18fdba8d6f8491755d
tree2c7f6838512e323a1bb682c9dbc38905a69b397f
parent33560f8020c2bf12bb5b598a03fa0a708cab3283
f2fs: remove folio_detach_private() in .invalidate_folio and .release_folio

We have maintain PagePrivate and page_private and page reference
w/ {set,clear}_page_private_*, it doesn't need to call
folio_detach_private() in the end of .invalidate_folio and
.release_folio, remove it and use f2fs_bug_on instead.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/f2fs.h