[PATCH 4.14 102/173] CIFS: fix wrapping bugs in num_entries()