From 363c325c7951f82f37621c6b6559f3350cd66c7b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 10 Jul 2023 10:44:41 +0300 Subject: [PATCH] Kenrel: Fix inode comparison We should not compare rdevs --- kernel/include/kernel/FS/Inode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/include/kernel/FS/Inode.h b/kernel/include/kernel/FS/Inode.h index 642a89a67..931fde86c 100644 --- a/kernel/include/kernel/FS/Inode.h +++ b/kernel/include/kernel/FS/Inode.h @@ -59,7 +59,7 @@ namespace Kernel bool can_access(const Credentials&, int); - bool operator==(const Inode& other) const { return dev() == other.dev() && rdev() == other.rdev() && ino() == other.ino(); } + bool operator==(const Inode& other) const { return dev() == other.dev() && ino() == other.ino(); } virtual ino_t ino() const = 0; virtual Mode mode() const = 0;