1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:55:08 +00:00
serenity/Kernel/FileSystem
Liav A b9dca3300e Kernel: Use more fine-grained content data block granularity in TmpFS
Instead of just having a giant KBuffer that is not resizeable easily, we
use multiple AnonymousVMObjects in one Vector to store them.
The idea is to not have to do giant memcpy or memset each time we need
to allocate or de-allocate memory for TmpFS inodes, but instead, we can
allocate only the desired block range when trying to write to it.
Therefore, it is also possible to have data holes in the inode content
in case of skipping an entire set of one data block or more when writing
to the inode content, thus, making memory usage much more efficient.

To ensure we don't run out of virtual memory range, don't allocate a
Region in advance to each TmpFSInode, but instead try to allocate a
Region on IO operation, and then use that Region to map the VMObjects
in IO loop.
2022-10-16 17:46:40 +02:00
..
SysFS Kernel: Abstracts x86 reboot and shutdown specific methods 2022-09-20 18:43:05 +01:00
AnonymousFile.cpp Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
AnonymousFile.h Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
BlockBasedFileSystem.cpp Kernel: Annotate all KBuffer and DoubleBuffer with a custom name 2022-07-12 00:55:31 +01:00
BlockBasedFileSystem.h Everywhere: Prefix 'TYPEDEF_DISTINCT_ORDERED_ID' with 'AK_' 2022-07-22 23:09:43 +01:00
Custody.cpp Kernel: Use RefPtr instead of LockRefPtr for Custody 2022-08-21 12:25:14 +02:00
Custody.h Kernel: Use RefPtr instead of LockRefPtr for Custody 2022-08-21 12:25:14 +02:00
DeviceFileTypes.h Everywhere: Prefix 'TYPEDEF_DISTINCT_ORDERED_ID' with 'AK_' 2022-07-22 23:09:43 +01:00
DevPtsFS.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
DevPtsFS.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
DevTmpFS.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
DevTmpFS.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
ext2_fs.h Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
ext2_types.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Ext2FileSystem.cpp Kernel: Fix typo in comment in Ext2FileSystem::read_bytes_locked method 2022-09-26 20:13:13 +01:00
Ext2FileSystem.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
FATFileSystem.cpp Kernel: Add support for the FAT32 filesystem 2022-10-14 18:36:40 -06:00
FATFileSystem.h Kernel: Add support for the FAT32 filesystem 2022-10-14 18:36:40 -06:00
FIFO.cpp Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
FIFO.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
File.cpp Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
File.h Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
FileBackedFileSystem.cpp Kernel: Use default constructors/destructors 2022-03-17 00:51:36 -07:00
FileBackedFileSystem.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
FileSystem.cpp Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
FileSystem.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
Inode.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
Inode.h Kernel/FileSystem: Remove the locking of a Inode mutex in InodeVMObjects 2022-09-26 22:06:10 +03:00
InodeFile.cpp Kernel: Handle mmap requests on zero-length data file inodes safely 2022-09-16 14:55:45 +03:00
InodeFile.h Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
InodeIdentifier.h Everywhere: Prefix 'TYPEDEF_DISTINCT_ORDERED_ID' with 'AK_' 2022-07-22 23:09:43 +01:00
InodeMetadata.cpp Kernel: Make VirtualFileSystem functions take credentials as input 2022-08-21 16:02:24 +02:00
InodeMetadata.h Kernel: Make VirtualFileSystem functions take credentials as input 2022-08-21 16:02:24 +02:00
InodeWatcher.cpp Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
InodeWatcher.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
ISO9660FileSystem.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
ISO9660FileSystem.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
Mount.cpp Kernel: Use RefPtr instead of LockRefPtr for Custody 2022-08-21 12:25:14 +02:00
Mount.h Kernel: Use RefPtr instead of LockRefPtr for Custody 2022-08-21 12:25:14 +02:00
OpenFileDescription.cpp Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
OpenFileDescription.h Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
Plan9FileSystem.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
Plan9FileSystem.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
ProcFS.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
ProcFS.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
SysFS.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
SysFS.h Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
TmpFS.cpp Kernel: Use more fine-grained content data block granularity in TmpFS 2022-10-16 17:46:40 +02:00
TmpFS.h Kernel: Use more fine-grained content data block granularity in TmpFS 2022-10-16 17:46:40 +02:00
UnveilNode.h AK+Kernel: Specialize Trie for NNOP<KString> and use it in UnveilNode 2022-02-16 22:21:37 +01:00
VirtualFileSystem.cpp Kernel/FileSystem: Make Inode::{write,read}_bytes methods non-virtual 2022-09-16 14:55:45 +03:00
VirtualFileSystem.h Kernel: Make VirtualFileSystem functions take credentials as input 2022-08-21 16:02:24 +02:00