[PATCH OLK-6.6 6/7] [Backport] libfs: Replace simple_offset end-of-directory detection