Kenrel: Fix inode comparison

We should not compare rdevs
This commit is contained in:
Bananymous 2023-07-10 10:44:41 +03:00
parent 583504ebe0
commit 363c325c79
1 changed files with 1 additions and 1 deletions

View File

@ -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;