diff options
author | Anton Kling <anton@kling.gg> | 2024-04-27 23:47:20 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-27 23:47:20 +0200 |
commit | 7695cb9ca77a32aae75cf0d2bcea9769cd938615 (patch) | |
tree | ef83d82688da83c0ab54c0a008277230ce97d7dd /kernel/fs/ext2.c | |
parent | e3ff175cc3a5fdd1d65a34d081955b9808c49eca (diff) |
Kernel: Ensure new kernel tables geet allocated for all current page directories
Diffstat (limited to 'kernel/fs/ext2.c')
-rw-r--r-- | kernel/fs/ext2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fs/ext2.c b/kernel/fs/ext2.c index 613cf53..1bdcdbc 100644 --- a/kernel/fs/ext2.c +++ b/kernel/fs/ext2.c @@ -36,7 +36,7 @@ struct BLOCK_CACHE { u8 block[1024]; }; -#define NUM_BLOCK_CACHE 3000 +#define NUM_BLOCK_CACHE 100 struct BLOCK_CACHE *cache; u32 cold_cache_hits = 0; @@ -800,7 +800,7 @@ int ext2_create_file(const char *path, int mode) { } vfs_inode_t *ext2_mount(void) { - cache = kcalloc(3000, sizeof(struct BLOCK_CACHE)); + cache = kcalloc(NUM_BLOCK_CACHE, sizeof(struct BLOCK_CACHE)); if (!cache) { return NULL; } |