[PATCH 4.19 298/422] f2fs: avoid infinite loop in f2fs_alloc_nid