mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Kernel: Switch LockRefPtr<Inode> to RefPtr<Inode>
The main place where this is a little iffy is in RAMFS where inodes have a LockWeakPtr to their parent inode. I've left that as a LockWeakPtr for now.
This commit is contained in:
parent
067d0689c5
commit
e6fc7b3ff7
50 changed files with 143 additions and 144 deletions
|
@ -43,7 +43,7 @@ private:
|
|||
ProcFS const& procfs() const { return static_cast<ProcFS const&>(Inode::fs()); }
|
||||
|
||||
// ^Inode (EROFS handling)
|
||||
virtual ErrorOr<NonnullLockRefPtr<Inode>> create_child(StringView, mode_t, dev_t, UserID, GroupID) override { return EROFS; }
|
||||
virtual ErrorOr<NonnullRefPtr<Inode>> create_child(StringView, mode_t, dev_t, UserID, GroupID) override { return EROFS; }
|
||||
virtual ErrorOr<void> add_child(Inode&, StringView, mode_t) override { return EROFS; }
|
||||
virtual ErrorOr<void> remove_child(StringView) override { return EROFS; }
|
||||
virtual ErrorOr<void> replace_child(StringView, Inode&) override { return EROFS; }
|
||||
|
@ -65,8 +65,8 @@ private:
|
|||
virtual InodeMetadata metadata() const override;
|
||||
virtual ErrorOr<size_t> read_bytes_locked(off_t, size_t, UserOrKernelBuffer& buffer, OpenFileDescription*) const override;
|
||||
|
||||
ErrorOr<NonnullLockRefPtr<Inode>> lookup_as_root_directory(StringView name);
|
||||
virtual ErrorOr<NonnullLockRefPtr<Inode>> lookup(StringView name) override final;
|
||||
ErrorOr<NonnullRefPtr<Inode>> lookup_as_root_directory(StringView name);
|
||||
virtual ErrorOr<NonnullRefPtr<Inode>> lookup(StringView name) override final;
|
||||
|
||||
ErrorOr<void> refresh_process_property_data(OpenFileDescription& description);
|
||||
ErrorOr<void> try_fetch_process_property_data(NonnullLockRefPtr<Process>, KBufferBuilder& builder) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue