[PATCH 3.16 237/328] CIFS: fix wrapping bugs in num_entries()