fixes #5130 removed the isInodeIndex calls to improve performance