Home
last modified time | relevance | path

Searched refs:osb (Results 1 – 25 of 50) sorted by relevance

12

/openbmc/linux/fs/ocfs2/
H A Dsuper.c222 "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()
1130 osb->dev_str, nodestr, osb->slot_num, in ocfs2_fill_super()
2103 ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super()
[all …]
H A Djournal.c114 if (osb->replay_map) in ocfs2_compute_replay_slots()
211 wait_event(osb->recovery_event, !ocfs2_recovery_thread_running(osb)); in ocfs2_recovery_exit()
216 if (osb->ocfs2_wq) in ocfs2_recovery_exit()
336 BUG_ON(!osb || !osb->journal->j_journal); in ocfs2_start_trans()
1026 BUG_ON(!osb); in ocfs2_journal_shutdown()
1149 osb->commit_task = kthread_run(ocfs2_commit_thread, osb, in ocfs2_journal_load()
1202 wait_event(osb->recovery_event, ocfs2_recovery_completed(osb)); in ocfs2_wait_for_recovery()
1507 MAJOR(osb->sb->s_dev), MINOR(osb->sb->s_dev)); in __ocfs2_recovery_thread()
1570 osb->disable_recovery, osb->recovery_thread_task, in ocfs2_recovery_thread()
2077 if (ocfs2_is_hard_readonly(osb) || ocfs2_mount_local(osb)) in ocfs2_orphan_scan_start()
[all …]
H A Dlocalalloc.c164 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 …]
H A Dslot_map.c137 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 …]
H A Dheartbeat.c38 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 …]
H A Dsysfile.c51 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 …]
H A Ddlmglue.c693 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()
3003 if (!ocfs2_is_hard_readonly(osb) && !ocfs2_mount_local(osb)) in ocfs2_dentry_unlock()
3311 osb->osb_debug_root, osb, &ocfs2_dlm_debug_fops); in ocfs2_dlm_init_debug()
3371 ocfs2_super_lock_res_init(&osb->osb_super_lockres, osb); in ocfs2_dlm_init()
3372 ocfs2_rename_lock_res_init(&osb->osb_rename_lockres, osb); in ocfs2_dlm_init()
3580 ocfs2_simple_drop_lockres(osb, &osb->osb_super_lockres); in ocfs2_drop_osb_locks()
3581 ocfs2_simple_drop_lockres(osb, &osb->osb_rename_lockres); in ocfs2_drop_osb_locks()
3582 ocfs2_simple_drop_lockres(osb, &osb->osb_nfs_sync_lockres); in ocfs2_drop_osb_locks()
4388 osb->dc_work_sequence = osb->dc_wake_sequence; in ocfs2_downconvert_thread_do_work()
[all …]
H A Docfs2.h527 if (!ocfs2_sparse_alloc(osb)) in ocfs2_writes_unwritten_extents()
629 spin_lock(&osb->osb_lock); in ocfs2_set_osb_flag()
630 osb->osb_flags |= flag; in ocfs2_set_osb_flag()
631 spin_unlock(&osb->osb_lock); in ocfs2_set_osb_flag()
637 spin_lock(&osb->osb_lock); in ocfs2_set_ro_flag()
643 spin_unlock(&osb->osb_lock); in ocfs2_set_ro_flag()
650 spin_lock(&osb->osb_lock); in ocfs2_is_hard_readonly()
652 spin_unlock(&osb->osb_lock); in ocfs2_is_hard_readonly()
661 spin_lock(&osb->osb_lock); in ocfs2_is_soft_readonly()
663 spin_unlock(&osb->osb_lock); in ocfs2_is_soft_readonly()
[all …]
H A Dlocalalloc.h13 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 …]
H A Djournal.h137 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 …]
H A Dslot_map.h14 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);
H A Ddlmglue.h105 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 …]
H A Dsuballoc.c856 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 …]
H A Dnamei.c233 struct ocfs2_super *osb; in ocfs2_mknod() local
265 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod()
359 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, in ocfs2_mknod()
529 spin_lock(&osb->osb_lock); in __ocfs2_mknod_locked()
777 handle = ocfs2_start_trans(osb, ocfs2_link_credits(osb->sb)); in ocfs2_link()
969 handle = ocfs2_start_trans(osb, ocfs2_unlink_credits(osb->sb)); in ocfs2_unlink()
1488 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_rename()
1835 osb = OCFS2_SB(sb); in ocfs2_symlink()
2317 osb->slot_num); in ocfs2_orphan_add()
2541 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0)); in ocfs2_create_inode_in_orphan()
[all …]
H A Dmove_extents.c124 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 …]
H A Dsuballoc.h49 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 …]
H A Dresize.c117 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 …]
H A Dinode.c264 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 …]
H A Dioctl.c91 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 …]
H A Dheartbeat.h13 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,
H A Dalloc.h159 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 …]
H A Dfile.c182 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()
287 ocfs2_commit_trans(osb, handle); in ocfs2_update_inode_atime()
334 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
433 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
686 ocfs2_commit_trans(osb, handle); in ocfs2_extend_allocation()
1275 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1934 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space()
2079 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space()
2692 if (!ocfs2_refcount_tree(osb)) in ocfs2_remap_file_range()
[all …]
H A Dalloc.c226 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 …]
H A Dfilecheck.c166 int ocfs2_filecheck_create_sysfs(struct ocfs2_super *osb) in ocfs2_filecheck_create_sysfs() argument
182 entry->fs_kobj.kset = osb->osb_dev_kset; in ocfs2_filecheck_create_sysfs()
196 void ocfs2_filecheck_remove_sysfs(struct ocfs2_super *osb) in ocfs2_filecheck_remove_sysfs() argument
198 if (!osb->osb_fc_ent.fs_fcheck) in ocfs2_filecheck_remove_sysfs()
201 kobject_del(&osb->osb_fc_ent.fs_kobj); in ocfs2_filecheck_remove_sysfs()
202 kobject_put(&osb->osb_fc_ent.fs_kobj); in ocfs2_filecheck_remove_sysfs()
204 ocfs2_filecheck_sysfs_free(&osb->osb_fc_ent); in ocfs2_filecheck_remove_sysfs()
406 ocfs2_filecheck_handle(struct ocfs2_super *osb, in ocfs2_filecheck_handle() argument
413 inode = ocfs2_iget(osb, ino, flags, 0); in ocfs2_filecheck_handle()
435 entry->fe_status = ocfs2_filecheck_handle(osb, in ocfs2_filecheck_handle_entry()
[all …]
H A Drefcounttree.c257 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()
4487 struct ocfs2_super *osb; in ocfs2_reflink_remap_extent() local
[all …]

12