Lines Matching refs:need_bytes
104 int need_bytes);
729 int need_bytes, free_bytes, cycle, bytes; in xfs_log_move_tail() local
786 need_bytes = tic->t_unit_res*tic->t_cnt; in xfs_log_move_tail()
788 need_bytes = tic->t_unit_res; in xfs_log_move_tail()
789 if (free_bytes < need_bytes && tail_lsn != 1) in xfs_log_move_tail()
792 free_bytes -= need_bytes; in xfs_log_move_tail()
1294 int need_bytes) in xlog_grant_push_ail() argument
1306 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_ail()
1320 free_threshold = BTOBB(need_bytes); in xlog_grant_push_ail()
2349 int need_bytes; in xlog_grant_log_space() local
2388 need_bytes = tic->t_unit_res*tic->t_ocnt; in xlog_grant_log_space()
2390 need_bytes = tic->t_unit_res; in xlog_grant_log_space()
2398 if (free_bytes < need_bytes) { in xlog_grant_log_space()
2413 xlog_grant_push_ail(log->l_mp, need_bytes); in xlog_grant_log_space()
2420 XLOG_GRANT_ADD_SPACE(log, need_bytes, 'w'); in xlog_grant_log_space()
2421 XLOG_GRANT_ADD_SPACE(log, need_bytes, 'r'); in xlog_grant_log_space()
2466 int free_bytes, need_bytes; in xlog_regrant_write_log_space() local
2532 need_bytes = tic->t_unit_res; in xlog_regrant_write_log_space()
2540 if (free_bytes < need_bytes) { in xlog_regrant_write_log_space()
2554 xlog_grant_push_ail(log->l_mp, need_bytes); in xlog_regrant_write_log_space()
2560 XLOG_GRANT_ADD_SPACE(log, need_bytes, 'w'); /* we've got enough space */ in xlog_regrant_write_log_space()