• Home
  • Raw
  • Download

Lines Matching refs:dirty

266 	unsigned long dirty;  in global_dirty_limits()  local
270 dirty = DIV_ROUND_UP(vm_dirty_bytes, PAGE_SIZE); in global_dirty_limits()
272 dirty = (vm_dirty_ratio * available_memory) / 100; in global_dirty_limits()
279 if (background >= dirty) in global_dirty_limits()
280 background = dirty / 2; in global_dirty_limits()
284 dirty += dirty / 4; in global_dirty_limits()
287 *pdirty = dirty; in global_dirty_limits()
288 trace_global_dirty_state(background, dirty); in global_dirty_limits()
302 unsigned long dirty; in zone_dirty_limit() local
305 dirty = DIV_ROUND_UP(vm_dirty_bytes, PAGE_SIZE) * in zone_dirty_limit()
308 dirty = vm_dirty_ratio * zone_memory / 100; in zone_dirty_limit()
311 dirty += dirty / 4; in zone_dirty_limit()
313 return dirty; in zone_dirty_limit()
540 unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long dirty) in bdi_dirty_limit() argument
550 bdi_dirty = (dirty * (100 - bdi_min_ratio)) / 100; in bdi_dirty_limit()
554 bdi_dirty += (dirty * bdi->min_ratio) / 100; in bdi_dirty_limit()
555 if (bdi_dirty > (dirty * bdi->max_ratio) / 100) in bdi_dirty_limit()
556 bdi_dirty = dirty * bdi->max_ratio / 100; in bdi_dirty_limit()
576 unsigned long dirty, in pos_ratio_polynom() argument
582 x = div64_s64(((s64)setpoint - (s64)dirty) << RATELIMIT_CALC_SHIFT, in pos_ratio_polynom()
670 unsigned long dirty, in bdi_position_ratio() argument
684 if (unlikely(dirty >= limit)) in bdi_position_ratio()
693 pos_ratio = pos_ratio_polynom(setpoint, dirty, limit); in bdi_position_ratio()
805 bdi_thresh = max(bdi_thresh, (limit - dirty) / 8); in bdi_position_ratio()
896 static void update_dirty_limit(unsigned long thresh, unsigned long dirty) in update_dirty_limit() argument
913 thresh = max(thresh, dirty); in update_dirty_limit()
924 unsigned long dirty, in global_update_bandwidth() argument
938 update_dirty_limit(thresh, dirty); in global_update_bandwidth()
953 unsigned long dirty, in bdi_update_dirty_ratelimit() argument
977 pos_ratio = bdi_position_ratio(bdi, thresh, bg_thresh, dirty, in bdi_update_dirty_ratelimit()
1072 dirty = bdi_dirty; in bdi_update_dirty_ratelimit()
1080 if (dirty < setpoint) { in bdi_update_dirty_ratelimit()
1117 unsigned long dirty, in __bdi_update_bandwidth() argument
1144 global_update_bandwidth(thresh, dirty, now); in __bdi_update_bandwidth()
1145 bdi_update_dirty_ratelimit(bdi, thresh, bg_thresh, dirty, in __bdi_update_bandwidth()
1160 unsigned long dirty, in bdi_update_bandwidth() argument
1168 __bdi_update_bandwidth(bdi, thresh, bg_thresh, dirty, in bdi_update_bandwidth()
1181 static unsigned long dirty_poll_interval(unsigned long dirty, in dirty_poll_interval() argument
1184 if (thresh > dirty) in dirty_poll_interval()
1185 return 1UL << (ilog2(thresh - dirty) >> 1); in dirty_poll_interval()
1366 unsigned long dirty; in balance_dirty_pages() local
1385 dirty = bdi_dirty; in balance_dirty_pages()
1388 dirty = nr_dirty; in balance_dirty_pages()
1402 if (dirty <= dirty_freerun_ceiling(thresh, bg_thresh)) { in balance_dirty_pages()
1406 dirty_poll_interval(dirty, thresh); in balance_dirty_pages()