[RFC PATCH v6.6 09/10] libfs: Replace simple_offset end-of-directory detection