[PATCH stable] ubifs: Handle re-linking of inodes correctly while recovery