mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:57:34 +00:00
Kernel: Stop using *LockRefPtr for FileSystem pointers
There was only one permanent storage location for these: as a member in the Mount class. That member is never modified after Mount initialization, so we don't need to worry about races there.
This commit is contained in:
parent
3f69ef86c2
commit
673592dea8
23 changed files with 40 additions and 41 deletions
|
@ -20,7 +20,7 @@ class Mount {
|
|||
friend class VirtualFileSystem;
|
||||
|
||||
public:
|
||||
Mount(FileSystem&, Custody* host_custody, int flags);
|
||||
Mount(NonnullRefPtr<FileSystem>, Custody* host_custody, int flags);
|
||||
Mount(Inode& source, Custody& host_custody, int flags);
|
||||
|
||||
RefPtr<Inode const> host() const;
|
||||
|
@ -39,7 +39,7 @@ public:
|
|||
|
||||
private:
|
||||
NonnullRefPtr<Inode> m_guest;
|
||||
NonnullLockRefPtr<FileSystem> m_guest_fs;
|
||||
NonnullRefPtr<FileSystem> m_guest_fs;
|
||||
SpinlockProtected<RefPtr<Custody>, LockRank::None> m_host_custody;
|
||||
int m_flags;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue