[PATCH 6.12 21/40] libfs: Replace simple_offset end-of-directory detection