summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/File.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileSystem/File.h')
-rw-r--r--Kernel/FileSystem/File.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h
index ccbe6b579a..51206f8b7a 100644
--- a/Kernel/FileSystem/File.h
+++ b/Kernel/FileSystem/File.h
@@ -8,11 +8,11 @@
#include <AK/AtomicRefCounted.h>
#include <AK/Error.h>
-#include <AK/NonnullRefPtr.h>
#include <AK/StringView.h>
#include <AK/Types.h>
-#include <AK/Weakable.h>
#include <Kernel/Forward.h>
+#include <Kernel/Library/LockWeakable.h>
+#include <Kernel/Library/NonnullLockRefPtr.h>
#include <Kernel/UnixTypes.h>
#include <Kernel/UserOrKernelBuffer.h>
#include <Kernel/VirtualAddress.h>
@@ -72,13 +72,13 @@ public:
class File
: public AtomicRefCounted<File>
- , public Weakable<File> {
+ , public LockWeakable<File> {
public:
virtual bool unref() const { return AtomicRefCounted<File>::unref(); }
virtual void will_be_destroyed() { }
virtual ~File();
- virtual ErrorOr<NonnullRefPtr<OpenFileDescription>> open(int options);
+ virtual ErrorOr<NonnullLockRefPtr<OpenFileDescription>> open(int options);
virtual ErrorOr<void> close();
virtual bool can_read(OpenFileDescription const&, u64) const = 0;