[PATCH 4.18 135/235] CIFS: fix wrapping bugs in num_entries()