Lines Matching refs:flush

297 			  enum btrfs_reserve_flush_enum flush)  in calc_available_free_space()  argument
324 if (flush == BTRFS_RESERVE_FLUSH_ALL) in calc_available_free_space()
333 enum btrfs_reserve_flush_enum flush) in btrfs_can_overcommit() argument
343 avail = calc_available_free_space(fs_info, space_info, flush); in btrfs_can_overcommit()
368 enum btrfs_reserve_flush_enum flush = BTRFS_RESERVE_NO_FLUSH; in btrfs_try_granting_tickets() local
383 flush)) { in btrfs_try_granting_tickets()
398 flush = BTRFS_RESERVE_FLUSH_ALL; in btrfs_try_granting_tickets()
949 space_info->flush = 0; in btrfs_async_reclaim_metadata_space()
961 space_info->flush = 0; in btrfs_async_reclaim_metadata_space()
1004 space_info->flush = 0; in btrfs_async_reclaim_metadata_space()
1042 enum btrfs_flush_state flush; in btrfs_preempt_reclaim_metadata_space() local
1078 flush = FLUSH_DELALLOC; in btrfs_preempt_reclaim_metadata_space()
1083 flush = COMMIT_TRANS; in btrfs_preempt_reclaim_metadata_space()
1087 flush = FLUSH_DELAYED_ITEMS_NR; in btrfs_preempt_reclaim_metadata_space()
1090 flush = FLUSH_DELAYED_REFS_NR; in btrfs_preempt_reclaim_metadata_space()
1101 flush_space(fs_info, space_info, to_reclaim, flush, true); in btrfs_preempt_reclaim_metadata_space()
1165 space_info->flush = 0; in btrfs_async_reclaim_data_space()
1176 space_info->flush = 0; in btrfs_async_reclaim_data_space()
1193 space_info->flush = 0; in btrfs_async_reclaim_data_space()
1210 space_info->flush = 0; in btrfs_async_reclaim_data_space()
1226 space_info->flush = 0; in btrfs_async_reclaim_data_space()
1353 enum btrfs_reserve_flush_enum flush) in handle_reserve_ticket() argument
1357 switch (flush) { in handle_reserve_ticket()
1409 start_ns, flush, ticket->error); in handle_reserve_ticket()
1417 static inline bool is_normal_flushing(enum btrfs_reserve_flush_enum flush) in is_normal_flushing() argument
1419 return (flush == BTRFS_RESERVE_FLUSH_ALL) || in is_normal_flushing()
1420 (flush == BTRFS_RESERVE_FLUSH_ALL_STEAL); in is_normal_flushing()
1458 enum btrfs_reserve_flush_enum flush) in __reserve_bytes() argument
1468 ASSERT(!current->journal_info || flush != BTRFS_RESERVE_FLUSH_ALL); in __reserve_bytes()
1470 if (flush == BTRFS_RESERVE_FLUSH_DATA) in __reserve_bytes()
1484 if (is_normal_flushing(flush) || (flush == BTRFS_RESERVE_NO_FLUSH)) in __reserve_bytes()
1496 btrfs_can_overcommit(fs_info, space_info, orig_bytes, flush))) { in __reserve_bytes()
1509 if (ret && flush != BTRFS_RESERVE_NO_FLUSH) { in __reserve_bytes()
1514 ticket.steal = (flush == BTRFS_RESERVE_FLUSH_ALL_STEAL); in __reserve_bytes()
1518 if (flush == BTRFS_RESERVE_FLUSH_ALL || in __reserve_bytes()
1519 flush == BTRFS_RESERVE_FLUSH_ALL_STEAL || in __reserve_bytes()
1520 flush == BTRFS_RESERVE_FLUSH_DATA) { in __reserve_bytes()
1522 if (!space_info->flush) { in __reserve_bytes()
1532 space_info->flush = 1; in __reserve_bytes()
1535 orig_bytes, flush, in __reserve_bytes()
1554 orig_bytes, flush, "preempt"); in __reserve_bytes()
1560 if (!ret || flush == BTRFS_RESERVE_NO_FLUSH) in __reserve_bytes()
1564 orig_bytes, flush); in __reserve_bytes()
1585 enum btrfs_reserve_flush_enum flush) in btrfs_reserve_metadata_bytes() argument
1591 ret = __reserve_bytes(fs_info, block_rsv->space_info, orig_bytes, flush); in btrfs_reserve_metadata_bytes()
1621 enum btrfs_reserve_flush_enum flush) in btrfs_reserve_data_bytes() argument
1626 ASSERT(flush == BTRFS_RESERVE_FLUSH_DATA || in btrfs_reserve_data_bytes()
1627 flush == BTRFS_RESERVE_FLUSH_FREE_SPACE_INODE); in btrfs_reserve_data_bytes()
1628 ASSERT(!current->journal_info || flush != BTRFS_RESERVE_FLUSH_DATA); in btrfs_reserve_data_bytes()
1630 ret = __reserve_bytes(fs_info, data_sinfo, bytes, flush); in btrfs_reserve_data_bytes()