diff options
| author | cah <cah@ableton.com> | 2020-08-07 00:32:35 +0200 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2020-08-07 00:32:35 +0200 |
| commit | f012c2c8cd0bb668ba702e429d5ee124421ac67e (patch) | |
| tree | 16f9ffce938b177b000f8e9158d49cb0544cc7d9 | |
| parent | 28c6f7e9814a18f72bd53903ee00404afb399fe7 (diff) | |
big haX.win32
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/ext4_mkfs.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8384760..81fb839 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ elseif(LIB_ONLY) add_definitions(-DCONFIG_DEBUG_ASSERT=0) add_definitions(-DCONFIG_HAVE_OWN_OFLAGS=1) add_definitions(-DCONFIG_HAVE_OWN_ERRNO=0) - add_definitions(-DCONFIG_BLOCK_DEV_CACHE_SIZE=16) + add_definitions(-DCONFIG_BLOCK_DEV_CACHE_SIZE=256) else() #Generic example target if (WIN32) @@ -46,7 +46,7 @@ else() add_definitions(-DCONFIG_HAVE_OWN_OFLAGS=0) add_definitions(-DCONFIG_HAVE_OWN_ERRNO=0) add_definitions(-DCONFIG_HAVE_OWN_ASSERT=0) - add_definitions(-DCONFIG_BLOCK_DEV_CACHE_SIZE=16) + add_definitions(-DCONFIG_BLOCK_DEV_CACHE_SIZE=256) endif() macro(output_configure) diff --git a/src/ext4_mkfs.c b/src/ext4_mkfs.c index cef49a3..61ada81 100644 --- a/src/ext4_mkfs.c +++ b/src/ext4_mkfs.c @@ -810,7 +810,7 @@ int ext4_mkfs(struct ext4_fs *fs, struct ext4_blockdev *bd, ext4_block_set_lb_size(bd, info->block_size); printf("init bcache with 64\n"); - r = ext4_bcache_init_dynamic(&bc, 64, + r = ext4_bcache_init_dynamic(&bc, CONFIG_BLOCK_DEV_CACHE_SIZE, info->block_size); if (r != EOK) goto block_fini; |
