/linux-6.3-rc2/fs/ocfs2/ |
A D | super.c | 222 "Device", osb->dev_str, osb->uuid_str, in ocfs2_osb_dump() 223 osb->fs_generation, osb->vol_label); in ocfs2_osb_dump() 227 atomic_read(&osb->vol_state), osb->osb_flags); in ocfs2_osb_dump() 231 osb->sb->s_blocksize, osb->s_clustersize); in ocfs2_osb_dump() 237 osb->s_feature_incompat, osb->s_feature_ro_compat); in ocfs2_osb_dump() 241 osb->s_mount_opt, osb->s_atime_quantum); in ocfs2_osb_dump() 258 (osb->dc_task ? task_pid_nr(osb->dc_task) : -1), in ocfs2_osb_dump() 259 osb->blocked_lock_count, osb->dc_wake_sequence, in ocfs2_osb_dump() 1126 osb->dev_str, nodestr, osb->slot_num, in ocfs2_fill_super() 2100 ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super() [all …]
|
A D | journal.c | 114 if (osb->replay_map) in ocfs2_compute_replay_slots() 214 wait_event(osb->recovery_event, !ocfs2_recovery_thread_running(osb)); in ocfs2_recovery_exit() 219 if (osb->ocfs2_wq) in ocfs2_recovery_exit() 339 BUG_ON(!osb || !osb->journal->j_journal); in ocfs2_start_trans() 1007 BUG_ON(!osb); in ocfs2_journal_shutdown() 1130 osb->commit_task = kthread_run(ocfs2_commit_thread, osb, in ocfs2_journal_load() 1183 wait_event(osb->recovery_event, ocfs2_recovery_completed(osb)); in ocfs2_wait_for_recovery() 1488 MAJOR(osb->sb->s_dev), MINOR(osb->sb->s_dev)); in __ocfs2_recovery_thread() 1551 osb->disable_recovery, osb->recovery_thread_task, in ocfs2_recovery_thread() 2058 if (ocfs2_is_hard_readonly(osb) || ocfs2_mount_local(osb)) in ocfs2_orphan_scan_start() [all …]
|
A D | localalloc.c | 164 megs_per_slot = osb->osb_clusters_at_boot / osb->max_slots; in ocfs2_la_default_mb() 203 osb->local_alloc_bits = osb->local_alloc_default_bits; in ocfs2_la_set_sizes() 280 if (osb->local_alloc_bits >= osb->bitmap_cpg) { in ocfs2_load_local_alloc() 283 osb->local_alloc_bits, (osb->bitmap_cpg - 1)); in ocfs2_load_local_alloc() 284 osb->local_alloc_bits = in ocfs2_load_local_alloc() 291 osb->slot_num); in ocfs2_load_local_alloc() 378 if (osb->ocfs2_wq) in ocfs2_shutdown_local_alloc() 387 osb->slot_num); in ocfs2_shutdown_local_alloc() 794 osb->local_alloc_bh, in ocfs2_free_local_alloc_bits() 1075 queue_delayed_work(osb->ocfs2_wq, &osb->la_enable_wq, in ocfs2_recalc_la_window() [all …]
|
A D | slot_map.c | 137 spin_lock(&osb->osb_lock); in ocfs2_refresh_slot_info() 190 spin_lock(&osb->osb_lock); in ocfs2_update_disk_slot() 276 spin_lock(&osb->osb_lock); in ocfs2_node_num_to_slot() 328 spin_lock(&osb->osb_lock); in ocfs2_clear_slot() 332 return ocfs2_update_disk_slot(osb, osb->slot_info, slot_num); in ocfs2_clear_slot() 356 (osb->sb->s_blocksize / in ocfs2_map_slot_buffers() 442 osb->slot_info = NULL; in ocfs2_free_slot_info() 452 si = osb->slot_info; in ocfs2_find_slot() 477 osb->slot_num = slot; in ocfs2_find_slot() 482 status = ocfs2_update_disk_slot(osb, si, osb->slot_num); in ocfs2_find_slot() [all …]
|
A D | sysfile.c | 51 spin_lock(&osb->osb_lock); in get_local_system_inode() 52 local_system_inodes = osb->local_system_inodes; in get_local_system_inode() 53 spin_unlock(&osb->osb_lock); in get_local_system_inode() 59 osb->max_slots), in get_local_system_inode() 71 spin_lock(&osb->osb_lock); in get_local_system_inode() 72 if (osb->local_system_inodes) { in get_local_system_inode() 78 spin_unlock(&osb->osb_lock); in get_local_system_inode() 97 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode() 101 mutex_lock(&osb->system_file_mutex); in ocfs2_get_system_file_inode() 105 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode() [all …]
|
A D | dlmglue.c | 693 ocfs2_nfs_sync_lock_res_init(&osb->osb_nfs_sync_lockres, osb); in ocfs2_nfs_sync_lock_init() 1834 if (ocfs2_is_hard_readonly(osb) || ocfs2_mount_local(osb)) in ocfs2_open_lock() 3001 if (!ocfs2_is_hard_readonly(osb) && !ocfs2_mount_local(osb)) in ocfs2_dentry_unlock() 3309 osb->osb_debug_root, osb, &ocfs2_dlm_debug_fops); in ocfs2_dlm_init_debug() 3369 ocfs2_super_lock_res_init(&osb->osb_super_lockres, osb); in ocfs2_dlm_init() 3370 ocfs2_rename_lock_res_init(&osb->osb_rename_lockres, osb); in ocfs2_dlm_init() 3578 ocfs2_simple_drop_lockres(osb, &osb->osb_super_lockres); in ocfs2_drop_osb_locks() 3579 ocfs2_simple_drop_lockres(osb, &osb->osb_rename_lockres); in ocfs2_drop_osb_locks() 3580 ocfs2_simple_drop_lockres(osb, &osb->osb_nfs_sync_lockres); in ocfs2_drop_osb_locks() 4386 osb->dc_work_sequence = osb->dc_wake_sequence; in ocfs2_downconvert_thread_do_work() [all …]
|
A D | heartbeat.c | 38 spin_lock_init(&osb->node_map_lock); in ocfs2_init_node_maps() 44 struct ocfs2_super *osb = data; in ocfs2_do_node_down() local 46 BUG_ON(osb->node_num == node_num); in ocfs2_do_node_down() 50 if (!osb->cconn) { in ocfs2_do_node_down() 60 ocfs2_recovery_thread(osb, node_num); in ocfs2_do_node_down() 70 spin_lock(&osb->node_map_lock); in ocfs2_node_map_set_bit() 72 spin_unlock(&osb->node_map_lock); in ocfs2_node_map_set_bit() 82 spin_lock(&osb->node_map_lock); in ocfs2_node_map_clear_bit() 84 spin_unlock(&osb->node_map_lock); in ocfs2_node_map_clear_bit() 96 spin_lock(&osb->node_map_lock); in ocfs2_node_map_test_bit() [all …]
|
A D | ocfs2.h | 500 if (!ocfs2_sparse_alloc(osb)) in ocfs2_writes_unwritten_extents() 602 spin_lock(&osb->osb_lock); in ocfs2_set_osb_flag() 603 osb->osb_flags |= flag; in ocfs2_set_osb_flag() 604 spin_unlock(&osb->osb_lock); in ocfs2_set_osb_flag() 610 spin_lock(&osb->osb_lock); in ocfs2_set_ro_flag() 616 spin_unlock(&osb->osb_lock); in ocfs2_set_ro_flag() 623 spin_lock(&osb->osb_lock); in ocfs2_is_hard_readonly() 625 spin_unlock(&osb->osb_lock); in ocfs2_is_hard_readonly() 634 spin_lock(&osb->osb_lock); in ocfs2_is_soft_readonly() 636 spin_unlock(&osb->osb_lock); in ocfs2_is_soft_readonly() [all …]
|
A D | localalloc.h | 13 int ocfs2_load_local_alloc(struct ocfs2_super *osb); 15 void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb); 17 void ocfs2_la_set_sizes(struct ocfs2_super *osb, int requested_mb); 18 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb); 20 int ocfs2_begin_local_alloc_recovery(struct ocfs2_super *osb, 24 int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb, 27 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb, 31 int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb, 35 int ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb, 42 int ocfs2_free_local_alloc_bits(struct ocfs2_super *osb, [all …]
|
A D | journal.h | 137 ci->ci_created_trans = osb->journal->j_trans_id; in ocfs2_ci_set_new() 142 void ocfs2_orphan_scan_init(struct ocfs2_super *osb); 144 void ocfs2_orphan_scan_stop(struct ocfs2_super *osb); 149 int ocfs2_recovery_init(struct ocfs2_super *osb); 150 void ocfs2_recovery_exit(struct ocfs2_super *osb); 172 int ocfs2_journal_alloc(struct ocfs2_super *osb); 188 wake_up(&osb->checkpoint_event); in ocfs2_start_checkpoint() 193 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_checkpoint_inode() local 195 if (ocfs2_mount_local(osb)) in ocfs2_checkpoint_inode() 205 ocfs2_start_checkpoint(osb); in ocfs2_checkpoint_inode() [all …]
|
A D | suballoc.c | 856 spin_lock(&osb->osb_lock); in ocfs2_init_inode_steal_slot() 858 spin_unlock(&osb->osb_lock); in ocfs2_init_inode_steal_slot() 864 spin_lock(&osb->osb_lock); in ocfs2_init_meta_steal_slot() 866 spin_unlock(&osb->osb_lock); in ocfs2_init_meta_steal_slot() 878 spin_lock(&osb->osb_lock); in __ocfs2_set_steal_slot() 883 spin_unlock(&osb->osb_lock); in __ocfs2_set_steal_slot() 890 spin_lock(&osb->osb_lock); in __ocfs2_get_steal_slot() 919 slot = osb->slot_num + 1; in ocfs2_steal_resource() 925 if (slot == osb->slot_num) in ocfs2_steal_resource() 1077 spin_lock(&osb->osb_lock); in ocfs2_reserve_new_inode() [all …]
|
A D | dlmglue.h | 105 int ocfs2_dlm_init(struct ocfs2_super *osb); 121 struct ocfs2_super *osb, u64 ref_blkno, 157 int ocfs2_super_lock(struct ocfs2_super *osb, 159 void ocfs2_super_unlock(struct ocfs2_super *osb, 164 int ocfs2_rename_lock(struct ocfs2_super *osb); 165 void ocfs2_rename_unlock(struct ocfs2_super *osb); 166 int ocfs2_nfs_sync_lock(struct ocfs2_super *osb, int ex); 170 int ocfs2_trim_fs_lock(struct ocfs2_super *osb, 172 void ocfs2_trim_fs_unlock(struct ocfs2_super *osb, 185 void ocfs2_mark_lockres_freeing(struct ocfs2_super *osb, [all …]
|
A D | slot_map.h | 14 int ocfs2_init_slot_info(struct ocfs2_super *osb); 15 void ocfs2_free_slot_info(struct ocfs2_super *osb); 17 int ocfs2_find_slot(struct ocfs2_super *osb); 18 void ocfs2_put_slot(struct ocfs2_super *osb); 20 int ocfs2_refresh_slot_info(struct ocfs2_super *osb); 22 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num); 23 int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num, 26 int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
|
A D | namei.c | 233 struct ocfs2_super *osb; in ocfs2_mknod() local 264 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod() 358 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, in ocfs2_mknod() 528 spin_lock(&osb->osb_lock); in __ocfs2_mknod_locked() 776 handle = ocfs2_start_trans(osb, ocfs2_link_credits(osb->sb)); in ocfs2_link() 967 handle = ocfs2_start_trans(osb, ocfs2_unlink_credits(osb->sb)); in ocfs2_unlink() 1485 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_rename() 1826 osb = OCFS2_SB(sb); in ocfs2_symlink() 2308 osb->slot_num); in ocfs2_orphan_add() 2532 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0)); in ocfs2_create_inode_in_orphan() [all …]
|
A D | move_extents.c | 124 ocfs2_blocks_to_clusters(osb->sb, in __ocfs2_move_extent() 202 struct inode *tl_inode = osb->osb_tl_inode; in ocfs2_defrag_extent() 249 if (ocfs2_truncate_log_needs_flush(osb)) { in ocfs2_defrag_extent() 250 ret = __ocfs2_flush_truncate_log(osb); in ocfs2_defrag_extent() 272 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent() 336 ocfs2_commit_trans(osb, handle); in ocfs2_defrag_extent() 642 handle = ocfs2_start_trans(osb, credits); in ocfs2_move_extent() 704 ocfs2_commit_trans(osb, handle); in ocfs2_move_extent() 796 osb->s_clustersize_bits; in __ocfs2_move_extents_range() 902 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_move_extents() [all …]
|
A D | resize.c | 117 if (OCFS2_HAS_COMPAT_FEATURE(osb->sb, in ocfs2_update_last_group_and_inode() 177 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() local 248 osb->dev_str); in ocfs2_update_super_and_backups() 271 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_group_extend() 303 ocfs2_group_bitmap_size(osb->sb, 0, in ocfs2_group_extend() 304 osb->s_feature_incompat) * 8) { in ocfs2_group_extend() 354 ocfs2_commit_trans(osb, handle); in ocfs2_group_extend() 461 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_group_add() 484 ocfs2_group_bitmap_size(osb->sb, 0, in ocfs2_group_add() 485 osb->s_feature_incompat) * 8) { in ocfs2_group_add() [all …]
|
A D | suballoc.h | 49 void ocfs2_init_steal_slots(struct ocfs2_super *osb); 61 int ocfs2_reserve_new_metadata(struct ocfs2_super *osb, 64 int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb, 67 int ocfs2_reserve_new_inode(struct ocfs2_super *osb, 69 int ocfs2_reserve_clusters(struct ocfs2_super *osb, 147 static inline u32 ocfs2_cluster_from_desc(struct ocfs2_super *osb, in ocfs2_cluster_from_desc() argument 154 if (bg_blkno == osb->first_cluster_group_blkno) in ocfs2_cluster_from_desc() 160 return ocfs2_blocks_to_clusters(osb->sb, bg_blkno); in ocfs2_cluster_from_desc() 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap() local 166 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap() [all …]
|
A D | inode.c | 264 struct ocfs2_super *osb; in ocfs2_populate_inode() local 268 osb = OCFS2_SB(sb); in ocfs2_populate_inode() 405 struct ocfs2_super *osb; in ocfs2_read_locked_inode() local 413 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode() 446 && !ocfs2_mount_local(osb); in ocfs2_read_locked_inode() 511 osb->sb, bh); in ocfs2_read_locked_inode() 514 osb->sb, bh); in ocfs2_read_locked_inode() 517 osb->sb, bh); in ocfs2_read_locked_inode() 724 spin_lock(&osb->osb_lock); in ocfs2_check_orphan_recovery_state() 725 if (ocfs2_node_map_test_bit(osb, &osb->osb_recovering_orphan_dirs, slot)) { in ocfs2_check_orphan_recovery_state() [all …]
|
A D | ioctl.c | 91 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fileattr_set() local 133 ocfs2_commit_trans(osb, handle); in ocfs2_fileattr_set() 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() local 170 oic.ic_clustersize = osb->s_clustersize; in ocfs2_info_handle_clustersize() 184 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() local 189 oim.im_max_slots = osb->max_slots; in ocfs2_info_handle_maxslots() 203 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() local 222 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() local 241 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features() local 246 oif.if_compat_features = osb->s_feature_compat; in ocfs2_info_handle_fs_features() [all …]
|
A D | file.c | 182 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_sync_file() 212 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_should_update_atime() 283 ocfs2_commit_trans(osb, handle); in ocfs2_update_inode_atime() 330 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update() 429 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate() 682 ocfs2_commit_trans(osb, handle); in ocfs2_extend_allocation() 1276 ocfs2_commit_trans(osb, handle); in ocfs2_setattr() 1935 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space() 2078 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space() 2648 if (!ocfs2_refcount_tree(osb)) in ocfs2_remap_file_range() [all …]
|
A D | alloc.h | 159 int ocfs2_truncate_log_init(struct ocfs2_super *osb); 160 void ocfs2_truncate_log_shutdown(struct ocfs2_super *osb); 161 void ocfs2_schedule_truncate_log_flush(struct ocfs2_super *osb, 163 int ocfs2_flush_truncate_log(struct ocfs2_super *osb); 164 int ocfs2_begin_truncate_log_recovery(struct ocfs2_super *osb, 169 int ocfs2_truncate_log_needs_flush(struct ocfs2_super *osb); 170 int ocfs2_truncate_log_append(struct ocfs2_super *osb, 174 int __ocfs2_flush_truncate_log(struct ocfs2_super *osb); 175 int ocfs2_try_to_free_truncate_log(struct ocfs2_super *osb, 205 int ocfs2_run_deallocs(struct ocfs2_super *osb, [all …]
|
A D | alloc.c | 226 osb->dev_str, in ocfs2_dinode_insert_check() 995 struct ocfs2_super *osb = in ocfs2_create_new_meta_bhs() local 4785 struct ocfs2_super *osb = in ocfs2_add_clusters_in_btree() local 6078 struct ocfs2_super *osb = in ocfs2_truncate_log_worker() local 6093 if (osb->osb_tl_inode && in ocfs2_schedule_truncate_log_flush() 6100 queue_delayed_work(osb->ocfs2_wq, &osb->osb_truncate_log_wq, in ocfs2_schedule_truncate_log_flush() 6317 brelse(osb->osb_tl_bh); in ocfs2_truncate_log_shutdown() 6318 iput(osb->osb_tl_inode); in ocfs2_truncate_log_shutdown() 6329 osb->slot_num, in ocfs2_truncate_log_init() 6661 struct ocfs2_super *osb = in ocfs2_reuse_blk_from_dealloc() local [all …]
|
A D | heartbeat.h | 13 void ocfs2_init_node_maps(struct ocfs2_super *osb); 19 void ocfs2_node_map_set_bit(struct ocfs2_super *osb, 22 void ocfs2_node_map_clear_bit(struct ocfs2_super *osb, 25 int ocfs2_node_map_test_bit(struct ocfs2_super *osb,
|
A D | refcounttree.c | 257 if (osb->osb_ref_tree_lru && osb->osb_ref_tree_lru == tree) in ocfs2_erase_refcount_tree_from_list_no_lock() 264 spin_lock(&osb->osb_lock); in ocfs2_erase_refcount_tree_from_list() 266 spin_unlock(&osb->osb_lock); in ocfs2_erase_refcount_tree_from_list() 331 spin_lock(&osb->osb_lock); in ocfs2_get_refcount_tree() 332 if (osb->osb_ref_tree_lru && in ocfs2_get_refcount_tree() 340 spin_unlock(&osb->osb_lock); in ocfs2_get_refcount_tree() 370 spin_lock(&osb->osb_lock); in ocfs2_get_refcount_tree() 632 spin_lock(&osb->osb_lock); in ocfs2_create_refcount_tree() 656 spin_lock(&osb->osb_lock); in ocfs2_create_refcount_tree() 4486 struct ocfs2_super *osb; in ocfs2_reflink_remap_extent() local [all …]
|
A D | aops.c | 191 if (!ocfs2_sparse_alloc(osb)) { in ocfs2_get_block() 1491 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline() 1506 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline() 1518 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline() 1685 if (ocfs2_sparse_alloc(osb)) in ocfs2_write_begin_nolock() 1840 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_nolock() 2054 ocfs2_commit_trans(osb, handle); in ocfs2_write_end_nolock() 2143 len = osb->s_clustersize - (pos & (osb->s_clustersize - 1)); in ocfs2_dio_wr_get_block() 2214 if (ocfs2_sparse_alloc(osb)) in ocfs2_dio_wr_get_block() 2374 ocfs2_commit_trans(osb, handle); in ocfs2_dio_end_io_write() [all …]
|