Re: PATCH: allow percentile size of tmpfs (2.5.66 / 2.4.20-pre2)

Xavier Bestel
2003-04-01T10:48:42Z

size = memparse(value,&rest);
+ if (*rest == '%') {
+ struct sysinfo si;
+ si_meminfo(&si);
+ size = (si.totalram << PAGE_CACHE_SHIFT) / 100 * size;

(si.totalram << PAGE_CACHE_SHIFT) * size / 100;
would have been better precision-wise.

Xav