Skip to contentSkip to conversation

mkfs.f2fs: set SQLite journal files to hot extensions

PATCH In review Jaegeuk Kim via Linux-f2fs-devel 1 participant 2 messages Sep 30, 2025 – Oct 1, 2025 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.f2fs: set SQLite journal files to hot extensions

Journal files will be created and deleted with random updates. Let's put the data in HOT log to mitigate the entire fragmentation.

---
 mkfs/f2fs_format.c | 3 +++
 1 file changed, 3 insertions(+)
mkfs/f2fs_format.c +3 -0
index b98976c6ffa8..53e1f982945d 100644
@@ -157,6 +157,9 @@ const char *media_ext_lists[] = {
 
 const char *hot_ext_lists[] = {
 	"db",
+	"db-journal",
+	"db-wal",
+	"db-shm",
 
 #ifndef WITH_ANDROID
 	/* Virtual machines */
Signature · 8 lines
2.51.0.618.g983fd99d29-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

A message that is not in the archive (sent off-list or not yet received): CAD14+f0JGoNeEbN=duPeiKhBmQK9EBZ4h-BE0ShwmckzoQ47PQ@mail.gmail.com

#2 lore raw
Quoted 4 lines · Juhyung Park

I recall being told by Chao that the ext is checked with .startsWith()-like semantics, hence "mp" covering both mp3/mp4.

Was this not the case for hot list?

Thanks, Juhyung. Yeah, it seems the code looks like that. Let me drop this patch.

Quoted 31 lines
Quoted 27 lines · On Tue, Sep 30, 2025 at 10:13 AM Jaegeuk Kim via Linux-f2fs-devel <…

Journal files will be created and deleted with random updates. Let's put the data in HOT log to mitigate the entire fragmentation.

---
 mkfs/f2fs_format.c | 3 +++
 1 file changed, 3 insertions(+)
mkfs/f2fs_format.c +3 -1
index b98976c6ffa8..53e1f982945d 100644
@@ -157,6 +157,9 @@ const char *media_ext_lists[] = {
 
 const char *hot_ext_lists[] = {
        "db",
+       "db-journal",
+       "db-wal",
+       "db-shm",
 
 #ifndef WITH_ANDROID
        /* Virtual machines */
--

2.51.0.618.g983fd99d29-goog

Quoted 5 lines
Quoted 5 lines

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel