• Home
  • Raw
  • Download

Lines Matching refs:fs_info

55 			btrfs_err(transaction->fs_info,  in btrfs_put_transaction()
82 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local
85 down_write(&fs_info->commit_root_sem); in switch_commit_roots()
104 btrfs_drop_and_free_fs_root(fs_info, root); in switch_commit_roots()
108 up_write(&fs_info->commit_root_sem); in switch_commit_roots()
142 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local
149 btrfs_block_rsv_release(fs_info, &fs_info->chunk_block_rsv, in btrfs_trans_release_chunk_metadata()
157 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() argument
162 spin_lock(&fs_info->trans_lock); in join_transaction()
165 if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) { in join_transaction()
166 spin_unlock(&fs_info->trans_lock); in join_transaction()
170 cur_trans = fs_info->running_transaction; in join_transaction()
173 spin_unlock(&fs_info->trans_lock); in join_transaction()
177 spin_unlock(&fs_info->trans_lock); in join_transaction()
183 spin_unlock(&fs_info->trans_lock); in join_transaction()
186 spin_unlock(&fs_info->trans_lock); in join_transaction()
205 spin_lock(&fs_info->trans_lock); in join_transaction()
206 if (fs_info->running_transaction) { in join_transaction()
213 } else if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) { in join_transaction()
214 spin_unlock(&fs_info->trans_lock); in join_transaction()
219 cur_trans->fs_info = fs_info; in join_transaction()
244 if (!list_empty(&fs_info->tree_mod_seq_list)) in join_transaction()
246 if (!RB_EMPTY_ROOT(&fs_info->tree_mod_log)) in join_transaction()
248 atomic64_set(&fs_info->tree_mod_seq, 0); in join_transaction()
262 list_add_tail(&cur_trans->list, &fs_info->trans_list); in join_transaction()
263 extent_io_tree_init(fs_info, &cur_trans->dirty_pages, in join_transaction()
264 IO_TREE_TRANS_DIRTY_PAGES, fs_info->btree_inode); in join_transaction()
265 fs_info->generation++; in join_transaction()
266 cur_trans->transid = fs_info->generation; in join_transaction()
267 fs_info->running_transaction = cur_trans; in join_transaction()
269 spin_unlock(&fs_info->trans_lock); in join_transaction()
284 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() local
288 WARN_ON(root == fs_info->extent_root); in record_root_in_trans()
303 spin_lock(&fs_info->fs_roots_radix_lock); in record_root_in_trans()
305 spin_unlock(&fs_info->fs_roots_radix_lock); in record_root_in_trans()
308 radix_tree_tag_set(&fs_info->fs_roots_radix, in record_root_in_trans()
311 spin_unlock(&fs_info->fs_roots_radix_lock); in record_root_in_trans()
344 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() local
353 spin_lock(&fs_info->fs_roots_radix_lock); in btrfs_add_dropped_root()
354 radix_tree_tag_clear(&fs_info->fs_roots_radix, in btrfs_add_dropped_root()
357 spin_unlock(&fs_info->fs_roots_radix_lock); in btrfs_add_dropped_root()
363 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() local
377 mutex_lock(&fs_info->reloc_mutex); in btrfs_record_root_in_trans()
379 mutex_unlock(&fs_info->reloc_mutex); in btrfs_record_root_in_trans()
395 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() argument
399 spin_lock(&fs_info->trans_lock); in wait_current_trans()
400 cur_trans = fs_info->running_transaction; in wait_current_trans()
403 spin_unlock(&fs_info->trans_lock); in wait_current_trans()
405 wait_event(fs_info->transaction_wait, in wait_current_trans()
410 spin_unlock(&fs_info->trans_lock); in wait_current_trans()
414 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() argument
416 if (test_bit(BTRFS_FS_LOG_RECOVERING, &fs_info->flags)) in may_wait_transaction()
427 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() local
429 if (!fs_info->reloc_ctl || in need_reserve_reloc_root()
443 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() local
444 struct btrfs_block_rsv *delayed_refs_rsv = &fs_info->delayed_refs_rsv; in start_transaction()
455 if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) in start_transaction()
472 if (num_items && root != fs_info->chunk_root) { in start_transaction()
473 struct btrfs_block_rsv *rsv = &fs_info->trans_block_rsv; in start_transaction()
476 qgroup_reserved = num_items * fs_info->nodesize; in start_transaction()
489 num_bytes = btrfs_calc_insert_metadata_size(fs_info, num_items); in start_transaction()
499 num_bytes += fs_info->nodesize; in start_transaction()
507 btrfs_migrate_to_delayed_refs_rsv(fs_info, rsv, in start_transaction()
520 ret = btrfs_delayed_refs_rsv_refill(fs_info, flush); in start_transaction()
542 sb_start_intwrite(fs_info->sb); in start_transaction()
544 if (may_wait_transaction(fs_info, type)) in start_transaction()
545 wait_current_trans(fs_info); in start_transaction()
548 ret = join_transaction(fs_info, type); in start_transaction()
550 wait_current_trans(fs_info); in start_transaction()
560 cur_trans = fs_info->running_transaction; in start_transaction()
566 h->fs_info = root->fs_info; in start_transaction()
574 may_wait_transaction(fs_info, type)) { in start_transaction()
581 trace_btrfs_space_reservation(fs_info, "transaction", in start_transaction()
583 h->block_rsv = &fs_info->trans_block_rsv; in start_transaction()
597 sb_end_intwrite(fs_info->sb); in start_transaction()
601 btrfs_block_rsv_release(fs_info, &fs_info->trans_block_rsv, in start_transaction()
620 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_start_transaction_fallback_global_rsv() local
640 num_bytes = btrfs_calc_insert_metadata_size(fs_info, num_items); in btrfs_start_transaction_fallback_global_rsv()
641 ret = btrfs_cond_migrate_bytes(fs_info, &fs_info->trans_block_rsv, in btrfs_start_transaction_fallback_global_rsv()
648 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_start_transaction_fallback_global_rsv()
650 trace_btrfs_space_reservation(fs_info, "transaction", in btrfs_start_transaction_fallback_global_rsv()
712 btrfs_wait_for_commit(root->fs_info, 0); in btrfs_attach_transaction_barrier()
723 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid) in btrfs_wait_for_commit() argument
729 if (transid <= fs_info->last_trans_committed) in btrfs_wait_for_commit()
733 spin_lock(&fs_info->trans_lock); in btrfs_wait_for_commit()
734 list_for_each_entry(t, &fs_info->trans_list, list) { in btrfs_wait_for_commit()
746 spin_unlock(&fs_info->trans_lock); in btrfs_wait_for_commit()
753 if (transid > fs_info->last_trans_committed) in btrfs_wait_for_commit()
759 spin_lock(&fs_info->trans_lock); in btrfs_wait_for_commit()
760 list_for_each_entry_reverse(t, &fs_info->trans_list, in btrfs_wait_for_commit()
770 spin_unlock(&fs_info->trans_lock); in btrfs_wait_for_commit()
781 void btrfs_throttle(struct btrfs_fs_info *fs_info) in btrfs_throttle() argument
783 wait_current_trans(fs_info); in btrfs_throttle()
788 struct btrfs_fs_info *fs_info = trans->fs_info; in should_end_transaction() local
790 if (btrfs_check_space_for_delayed_refs(fs_info)) in should_end_transaction()
793 return !!btrfs_block_rsv_check(&fs_info->global_block_rsv, 5); in should_end_transaction()
811 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_metadata() local
821 ASSERT(trans->block_rsv == &fs_info->trans_block_rsv); in btrfs_trans_release_metadata()
822 trace_btrfs_space_reservation(fs_info, "transaction", in btrfs_trans_release_metadata()
824 btrfs_block_rsv_release(fs_info, trans->block_rsv, in btrfs_trans_release_metadata()
832 struct btrfs_fs_info *info = trans->fs_info; in __btrfs_end_transaction()
899 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, in btrfs_write_marked_extents() argument
904 struct address_space *mapping = fs_info->btree_inode->i_mapping; in btrfs_write_marked_extents()
909 atomic_inc(&BTRFS_I(fs_info->btree_inode)->sync_writers); in btrfs_write_marked_extents()
945 atomic_dec(&BTRFS_I(fs_info->btree_inode)->sync_writers); in btrfs_write_marked_extents()
955 static int __btrfs_wait_marked_extents(struct btrfs_fs_info *fs_info, in __btrfs_wait_marked_extents() argument
960 struct address_space *mapping = fs_info->btree_inode->i_mapping; in __btrfs_wait_marked_extents()
993 int btrfs_wait_extents(struct btrfs_fs_info *fs_info, in btrfs_wait_extents() argument
999 err = __btrfs_wait_marked_extents(fs_info, dirty_pages); in btrfs_wait_extents()
1000 if (test_and_clear_bit(BTRFS_FS_BTREE_ERR, &fs_info->flags)) in btrfs_wait_extents()
1010 struct btrfs_fs_info *fs_info = log_root->fs_info; in btrfs_wait_tree_log_extents() local
1017 err = __btrfs_wait_marked_extents(fs_info, dirty_pages); in btrfs_wait_tree_log_extents()
1019 test_and_clear_bit(BTRFS_FS_LOG1_ERR, &fs_info->flags)) in btrfs_wait_tree_log_extents()
1023 test_and_clear_bit(BTRFS_FS_LOG2_ERR, &fs_info->flags)) in btrfs_wait_tree_log_extents()
1043 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_write_and_wait_transaction() local
1047 ret = btrfs_write_marked_extents(fs_info, dirty_pages, EXTENT_DIRTY); in btrfs_write_and_wait_transaction()
1049 ret2 = btrfs_wait_extents(fs_info, dirty_pages); in btrfs_write_and_wait_transaction()
1077 struct btrfs_fs_info *fs_info = root->fs_info; in update_cowonly_root() local
1078 struct btrfs_root *tree_root = fs_info->tree_root; in update_cowonly_root()
1110 struct btrfs_fs_info *fs_info = trans->fs_info; in commit_cowonly_roots() local
1117 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1118 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1149 while (!list_empty(&fs_info->dirty_cowonly_roots)) { in commit_cowonly_roots()
1151 next = fs_info->dirty_cowonly_roots.next; in commit_cowonly_roots()
1156 if (root != fs_info->extent_root) in commit_cowonly_roots()
1176 if (!list_empty(&fs_info->dirty_cowonly_roots)) in commit_cowonly_roots()
1179 list_add_tail(&fs_info->extent_root->dirty_list, in commit_cowonly_roots()
1183 fs_info->dev_replace.committed_cursor_left = in commit_cowonly_roots()
1184 fs_info->dev_replace.cursor_left_last_write_of_item; in commit_cowonly_roots()
1196 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dead_root() local
1198 spin_lock(&fs_info->trans_lock); in btrfs_add_dead_root()
1200 list_add_tail(&root->root_list, &fs_info->dead_roots); in btrfs_add_dead_root()
1201 spin_unlock(&fs_info->trans_lock); in btrfs_add_dead_root()
1209 struct btrfs_fs_info *fs_info = trans->fs_info; in commit_fs_roots() local
1215 spin_lock(&fs_info->fs_roots_radix_lock); in commit_fs_roots()
1217 ret = radix_tree_gang_lookup_tag(&fs_info->fs_roots_radix, in commit_fs_roots()
1225 radix_tree_tag_clear(&fs_info->fs_roots_radix, in commit_fs_roots()
1228 spin_unlock(&fs_info->fs_roots_radix_lock); in commit_fs_roots()
1246 err = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1249 spin_lock(&fs_info->fs_roots_radix_lock); in commit_fs_roots()
1255 spin_unlock(&fs_info->fs_roots_radix_lock); in commit_fs_roots()
1265 struct btrfs_fs_info *info = root->fs_info; in btrfs_defrag_root()
1309 struct btrfs_fs_info *fs_info = src->fs_info; in qgroup_account_snapshot() local
1317 if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags)) in qgroup_account_snapshot()
1332 mutex_lock(&fs_info->tree_log_mutex); in qgroup_account_snapshot()
1365 btrfs_handle_fs_error(fs_info, ret, in qgroup_account_snapshot()
1369 mutex_unlock(&fs_info->tree_log_mutex); in qgroup_account_snapshot()
1395 struct btrfs_fs_info *fs_info = trans->fs_info; in create_pending_snapshot() local
1398 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot()
1450 trace_btrfs_space_reservation(fs_info, "transaction", in create_pending_snapshot()
1570 pending->snap = btrfs_read_fs_root_no_name(fs_info, &key); in create_pending_snapshot()
1675 static void update_super_roots(struct btrfs_fs_info *fs_info) in update_super_roots() argument
1680 super = fs_info->super_copy; in update_super_roots()
1682 root_item = &fs_info->chunk_root->root_item; in update_super_roots()
1687 root_item = &fs_info->tree_root->root_item; in update_super_roots()
1691 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
1693 if (test_bit(BTRFS_FS_UPDATE_UUID_TREE_GEN, &fs_info->flags)) in update_super_roots()
1727 static void wait_current_trans_commit_start(struct btrfs_fs_info *fs_info, in wait_current_trans_commit_start() argument
1730 wait_event(fs_info->transaction_blocked_wait, in wait_current_trans_commit_start()
1739 struct btrfs_fs_info *fs_info, in wait_current_trans_commit_start_and_unblock() argument
1742 wait_event(fs_info->transaction_wait, in wait_current_trans_commit_start_and_unblock()
1765 __sb_writers_acquired(ac->newtrans->fs_info->sb, SB_FREEZE_FS); in do_async_commit()
1776 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_commit_transaction_async() local
1803 __sb_writers_release(fs_info->sb, SB_FREEZE_FS); in btrfs_commit_transaction_async()
1809 wait_current_trans_commit_start_and_unblock(fs_info, cur_trans); in btrfs_commit_transaction_async()
1811 wait_current_trans_commit_start(fs_info, cur_trans); in btrfs_commit_transaction_async()
1823 struct btrfs_fs_info *fs_info = trans->fs_info; in cleanup_transaction() local
1830 spin_lock(&fs_info->trans_lock); in cleanup_transaction()
1840 if (cur_trans == fs_info->running_transaction) { in cleanup_transaction()
1842 spin_unlock(&fs_info->trans_lock); in cleanup_transaction()
1846 spin_lock(&fs_info->trans_lock); in cleanup_transaction()
1848 spin_unlock(&fs_info->trans_lock); in cleanup_transaction()
1850 btrfs_cleanup_one_transaction(trans->transaction, fs_info); in cleanup_transaction()
1852 spin_lock(&fs_info->trans_lock); in cleanup_transaction()
1853 if (cur_trans == fs_info->running_transaction) in cleanup_transaction()
1854 fs_info->running_transaction = NULL; in cleanup_transaction()
1855 spin_unlock(&fs_info->trans_lock); in cleanup_transaction()
1858 sb_end_intwrite(fs_info->sb); in cleanup_transaction()
1866 btrfs_scrub_cancel(fs_info); in cleanup_transaction()
1877 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_cleanup_pending_block_groups() local
1881 btrfs_delayed_refs_rsv_release(fs_info, 1); in btrfs_cleanup_pending_block_groups()
1888 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_start_delalloc_flush() local
1899 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_start_delalloc_flush()
1900 writeback_inodes_sb(fs_info->sb, WB_REASON_SYNC); in btrfs_start_delalloc_flush()
1925 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_wait_delalloc_flush() local
1927 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_wait_delalloc_flush()
1928 btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1); in btrfs_wait_delalloc_flush()
1947 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_commit_transaction() local
2004 mutex_lock(&fs_info->ro_block_group_mutex); in btrfs_commit_transaction()
2008 mutex_unlock(&fs_info->ro_block_group_mutex); in btrfs_commit_transaction()
2019 spin_lock(&fs_info->trans_lock); in btrfs_commit_transaction()
2021 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2036 wake_up(&fs_info->transaction_blocked_wait); in btrfs_commit_transaction()
2038 if (cur_trans->list.prev != &fs_info->trans_list) { in btrfs_commit_transaction()
2043 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2052 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2055 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2062 if (test_bit(BTRFS_FS_STATE_TRANS_ABORTED, &fs_info->fs_state)) { in btrfs_commit_transaction()
2088 btrfs_scrub_pause(fs_info); in btrfs_commit_transaction()
2094 spin_lock(&fs_info->trans_lock); in btrfs_commit_transaction()
2096 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2110 mutex_lock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2119 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2135 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2141 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2149 btrfs_assert_delayed_root_empty(fs_info); in btrfs_commit_transaction()
2166 mutex_lock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2170 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2171 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2179 btrfs_apply_pending_changes(fs_info); in btrfs_commit_transaction()
2184 btrfs_free_log_root_tree(trans, fs_info); in btrfs_commit_transaction()
2192 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2193 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2203 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2204 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2210 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2211 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2221 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2222 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2226 btrfs_prepare_extent_commit(fs_info); in btrfs_commit_transaction()
2228 cur_trans = fs_info->running_transaction; in btrfs_commit_transaction()
2230 btrfs_set_root_node(&fs_info->tree_root->root_item, in btrfs_commit_transaction()
2231 fs_info->tree_root->node); in btrfs_commit_transaction()
2232 list_add_tail(&fs_info->tree_root->dirty_list, in btrfs_commit_transaction()
2235 btrfs_set_root_node(&fs_info->chunk_root->root_item, in btrfs_commit_transaction()
2236 fs_info->chunk_root->node); in btrfs_commit_transaction()
2237 list_add_tail(&fs_info->chunk_root->dirty_list, in btrfs_commit_transaction()
2244 update_super_roots(fs_info); in btrfs_commit_transaction()
2246 btrfs_set_super_log_root(fs_info->super_copy, 0); in btrfs_commit_transaction()
2247 btrfs_set_super_log_root_level(fs_info->super_copy, 0); in btrfs_commit_transaction()
2248 memcpy(fs_info->super_for_commit, fs_info->super_copy, in btrfs_commit_transaction()
2249 sizeof(*fs_info->super_copy)); in btrfs_commit_transaction()
2253 clear_bit(BTRFS_FS_LOG1_ERR, &fs_info->flags); in btrfs_commit_transaction()
2254 clear_bit(BTRFS_FS_LOG2_ERR, &fs_info->flags); in btrfs_commit_transaction()
2258 spin_lock(&fs_info->trans_lock); in btrfs_commit_transaction()
2260 fs_info->running_transaction = NULL; in btrfs_commit_transaction()
2261 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2262 mutex_unlock(&fs_info->reloc_mutex); in btrfs_commit_transaction()
2264 wake_up(&fs_info->transaction_wait); in btrfs_commit_transaction()
2268 btrfs_handle_fs_error(fs_info, ret, in btrfs_commit_transaction()
2270 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2274 ret = write_all_supers(fs_info, 0); in btrfs_commit_transaction()
2279 mutex_unlock(&fs_info->tree_log_mutex); in btrfs_commit_transaction()
2286 btrfs_clear_space_info_full(fs_info); in btrfs_commit_transaction()
2288 fs_info->last_trans_committed = cur_trans->transid; in btrfs_commit_transaction()
2295 clear_bit(BTRFS_FS_NEED_ASYNC_COMMIT, &fs_info->flags); in btrfs_commit_transaction()
2297 spin_lock(&fs_info->trans_lock); in btrfs_commit_transaction()
2299 spin_unlock(&fs_info->trans_lock); in btrfs_commit_transaction()
2305 sb_end_intwrite(fs_info->sb); in btrfs_commit_transaction()
2309 btrfs_scrub_continue(fs_info); in btrfs_commit_transaction()
2319 btrfs_scrub_continue(fs_info); in btrfs_commit_transaction()
2325 btrfs_warn(fs_info, "Skipping commit of aborted transaction."); in btrfs_commit_transaction()
2346 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_clean_one_deleted_snapshot() local
2348 spin_lock(&fs_info->trans_lock); in btrfs_clean_one_deleted_snapshot()
2349 if (list_empty(&fs_info->dead_roots)) { in btrfs_clean_one_deleted_snapshot()
2350 spin_unlock(&fs_info->trans_lock); in btrfs_clean_one_deleted_snapshot()
2353 root = list_first_entry(&fs_info->dead_roots, in btrfs_clean_one_deleted_snapshot()
2356 spin_unlock(&fs_info->trans_lock); in btrfs_clean_one_deleted_snapshot()
2358 btrfs_debug(fs_info, "cleaner removing %llu", root->root_key.objectid); in btrfs_clean_one_deleted_snapshot()
2371 void btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info) in btrfs_apply_pending_changes() argument
2376 prev = xchg(&fs_info->pending_changes, 0); in btrfs_apply_pending_changes()
2382 btrfs_set_opt(fs_info->mount_opt, INODE_MAP_CACHE); in btrfs_apply_pending_changes()
2387 btrfs_clear_opt(fs_info->mount_opt, INODE_MAP_CACHE); in btrfs_apply_pending_changes()
2392 btrfs_debug(fs_info, "pending commit done"); in btrfs_apply_pending_changes()
2396 btrfs_warn(fs_info, in btrfs_apply_pending_changes()