Take dev into account in addition to inode