mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Assert on attempt to mark inode metadata dirty on read-only FS
This commit is contained in:
@@ -230,6 +230,12 @@ NonnullRefPtr<FIFO> Inode::fifo()
|
||||
void Inode::set_metadata_dirty(bool metadata_dirty)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
|
||||
if (metadata_dirty) {
|
||||
// Sanity check.
|
||||
ASSERT(!fs().is_readonly());
|
||||
}
|
||||
|
||||
if (m_metadata_dirty == metadata_dirty)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user