cachestat01: Reduce required space on 64kb page size

ppc64le (6.10.1 on Tumbleweed) fails due 64kb page size requiring more
space:

cachestat01.c:39: TINFO: Number of pages: 4096
cachestat01.c:56: TPASS: cachestat(fd, cs_range, cs, 0) passed
cachestat01.c:59: TPASS: cs->nr_cache + cs->nr_evicted == num_pages (4096)
cachestat01.c:38: TINFO: Disable file synchronization
cachestat01.c:39: TINFO: Number of pages: 8192
cachestat01.c:46: TBROK: write(3,0x1000ddb0aa0,65536) failed: ENOSPC (28)

Therefore use calculation, which enables maximum number of pages 1 << 14
only for 4kb page size, for 64kb set the maximum number of pages 1 << 11
(13 would trigger ENOSPC on XFS and Btrfs, 12 would work, but using 11
to be future proof in case of metadata size changes or page size
increases).

Link: https://lore.kernel.org/ltp/20240731073403.1406035-1-pvorel@suse.cz/
Fixes: 93b28ee69d ("Add cachestat01 test")
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 file changed