1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

Kernel/FileSystem: Pass last mount point guest inode to unmount prepare

This will be important later on when we check file system busyness.
This commit is contained in:
kleines Filmröllchen 2023-07-02 14:23:53 +02:00 committed by Jelle Raaijmakers
parent 2fe5ece449
commit 8fb126bec6
11 changed files with 14 additions and 13 deletions

View file

@ -41,7 +41,7 @@ public:
virtual unsigned total_inode_count() const { return 0; }
virtual unsigned free_inode_count() const { return 0; }
ErrorOr<void> prepare_to_unmount();
ErrorOr<void> prepare_to_unmount(Inode& mount_guest_inode);
struct DirectoryEntryView {
DirectoryEntryView(StringView name, InodeIdentifier, u8 file_type);
@ -69,7 +69,7 @@ protected:
void set_block_size(u64 size) { m_block_size = size; }
void set_fragment_size(size_t size) { m_fragment_size = size; }
virtual ErrorOr<void> prepare_to_clear_last_mount() { return {}; }
virtual ErrorOr<void> prepare_to_clear_last_mount([[maybe_unused]] Inode& mount_guest_inode) { return {}; }
mutable Mutex m_lock { "FS"sv };