summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/f2fs/super.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index bd37139d0d9e..7654f2beabdd 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2734,6 +2734,12 @@ repeat:
goto repeat;
}
+ /*
+ * should never happen, just leave f2fs_bug_on() here to catch
+ * any potential bug.
+ */
+ f2fs_bug_on(F2FS_SB(sb), !folio_test_uptodate(folio));
+
memcpy_from_folio(data, folio, offset, tocopy);
f2fs_folio_put(folio, true);