Kenrel: Fix inode comparison

We should not compare rdevs
This commit is contained in:
Bananymous
2023-07-10 10:44:41 +03:00
parent 5ec2d85081
commit d713f252aa

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;