Lines Matching refs:stats
85 struct kstatfs stats; in cachefiles_daemon_add_cache() local
146 ret = vfs_statfs(&path, &stats); in cachefiles_daemon_add_cache()
151 if (stats.f_bsize <= 0) in cachefiles_daemon_add_cache()
155 if (stats.f_bsize > PAGE_SIZE) in cachefiles_daemon_add_cache()
158 cache->bsize = stats.f_bsize; in cachefiles_daemon_add_cache()
160 if (stats.f_bsize < PAGE_SIZE) in cachefiles_daemon_add_cache()
161 cache->bshift = PAGE_SHIFT - ilog2(stats.f_bsize); in cachefiles_daemon_add_cache()
167 (unsigned long long) stats.f_blocks, in cachefiles_daemon_add_cache()
168 (unsigned long long) stats.f_bavail); in cachefiles_daemon_add_cache()
171 do_div(stats.f_files, 100); in cachefiles_daemon_add_cache()
172 cache->fstop = stats.f_files * cache->fstop_percent; in cachefiles_daemon_add_cache()
173 cache->fcull = stats.f_files * cache->fcull_percent; in cachefiles_daemon_add_cache()
174 cache->frun = stats.f_files * cache->frun_percent; in cachefiles_daemon_add_cache()
181 stats.f_blocks >>= cache->bshift; in cachefiles_daemon_add_cache()
182 do_div(stats.f_blocks, 100); in cachefiles_daemon_add_cache()
183 cache->bstop = stats.f_blocks * cache->bstop_percent; in cachefiles_daemon_add_cache()
184 cache->bcull = stats.f_blocks * cache->bcull_percent; in cachefiles_daemon_add_cache()
185 cache->brun = stats.f_blocks * cache->brun_percent; in cachefiles_daemon_add_cache()