mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:45:09 +00:00
Kernel: Move set_metadata_dirty calls to notify_watchers
This commit is contained in:
parent
8e41d96618
commit
abccb45060
1 changed files with 2 additions and 4 deletions
|
@ -184,8 +184,7 @@ KResultOr<size_t> TmpFSInode::write_bytes(off_t offset, size_t size, const UserO
|
|||
m_content = move(tmp);
|
||||
}
|
||||
m_metadata.size = new_size;
|
||||
set_metadata_dirty(true);
|
||||
set_metadata_dirty(false);
|
||||
notify_watchers();
|
||||
}
|
||||
|
||||
if (!buffer.read(m_content->data() + offset, size)) // TODO: partial reads?
|
||||
|
@ -363,8 +362,7 @@ KResult TmpFSInode::set_atime(time_t time)
|
|||
MutexLocker locker(m_inode_lock);
|
||||
|
||||
m_metadata.atime = time;
|
||||
set_metadata_dirty(true);
|
||||
set_metadata_dirty(false);
|
||||
notify_watchers();
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue