[PATCH 3.18 093/105] CIFS: fix wrapping bugs in num_entries()