Kernel: Split BlockBasedFileSystem off FileBackedFileSystem

FileBackedFileSystem is one that's backed by (mounted from) a file, in other
words one that has a "source" of the mount; that doesn't mean it deals in
blocks. The hierarchy now becomes:

* FS
  * ProcFS
  * DevPtsFS
  * TmpFS
  * FileBackedFS
    * (future) Plan9FS
    * BlockBasedFS
      * Ext2FS
This commit is contained in:
Sergey Bugaev 2020-07-02 12:48:08 +03:00 committed by Andreas Kling
parent 0c72a9eda7
commit 187b785a05
Notes: sideshowbarker 2024-07-19 05:10:00 +09:00
7 changed files with 371 additions and 294 deletions

View file

@ -70,7 +70,7 @@ NonnullRefPtr<Ext2FS> Ext2FS::create(FileDescription& file_description)
}
Ext2FS::Ext2FS(FileDescription& file_description)
: FileBackedFS(file_description)
: BlockBasedFS(file_description)
{
}
@ -548,7 +548,7 @@ void Ext2FS::flush_writes()
}
}
FileBackedFS::flush_writes();
BlockBasedFS::flush_writes();
// Uncache Inodes that are only kept alive by the index-to-inode lookup cache.
// We don't uncache Inodes that are being watched by at least one InodeWatcher.