Home
last modified time | relevance | path

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

12

/linux/fs/ocfs2/
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()
2100 ocfs2_resmap_init(osb, &osb->osb_la_resmap); in ocfs2_initialize_super()
[all …]
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()
1043 BUG_ON(!osb); in ocfs2_journal_shutdown()
1167 osb->commit_task = kthread_run(ocfs2_commit_thread, osb, in ocfs2_journal_load()
1220 wait_event(osb->recovery_event, ocfs2_recovery_completed(osb)); in ocfs2_wait_for_recovery()
1525 MAJOR(osb->sb->s_dev), MINOR(osb->sb->s_dev)); in __ocfs2_recovery_thread()
1588 osb->disable_recovery, osb->recovery_thread_task, in ocfs2_recovery_thread()
2095 if (ocfs2_is_hard_readonly(osb) || ocfs2_mount_local(osb)) in ocfs2_orphan_scan_start()
[all …]
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()
281 if (osb->local_alloc_bits >= osb->bitmap_cpg) { in ocfs2_load_local_alloc()
284 osb->local_alloc_bits, (osb->bitmap_cpg - 1)); in ocfs2_load_local_alloc()
285 osb->local_alloc_bits = in ocfs2_load_local_alloc()
292 osb->slot_num); in ocfs2_load_local_alloc()
379 if (osb->ocfs2_wq) in ocfs2_shutdown_local_alloc()
388 osb->slot_num); in ocfs2_shutdown_local_alloc()
795 osb->local_alloc_bh, in ocfs2_free_local_alloc_bits()
1088 queue_delayed_work(osb->ocfs2_wq, &osb->la_enable_wq, in ocfs2_recalc_la_window()
[all …]
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 …]
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()
3308 osb->osb_debug_root, osb, &ocfs2_dlm_debug_fops); in ocfs2_dlm_init_debug()
3368 ocfs2_super_lock_res_init(&osb->osb_super_lockres, osb); in ocfs2_dlm_init()
3369 ocfs2_rename_lock_res_init(&osb->osb_rename_lockres, osb); in ocfs2_dlm_init()
3577 ocfs2_simple_drop_lockres(osb, &osb->osb_super_lockres); in ocfs2_drop_osb_locks()
3578 ocfs2_simple_drop_lockres(osb, &osb->osb_rename_lockres); in ocfs2_drop_osb_locks()
3579 ocfs2_simple_drop_lockres(osb, &osb->osb_nfs_sync_lockres); in ocfs2_drop_osb_locks()
4385 osb->dc_work_sequence = osb->dc_wake_sequence; in ocfs2_downconvert_thread_do_work()
[all …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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);
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()
1487 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_rename()
1845 osb = OCFS2_SB(sb); in ocfs2_symlink()
2329 osb->slot_num); in ocfs2_orphan_add()
2553 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0)); in ocfs2_create_inode_in_orphan()
[all …]
A Dsuballoc.c860 spin_lock(&osb->osb_lock); in ocfs2_init_inode_steal_slot()
862 spin_unlock(&osb->osb_lock); in ocfs2_init_inode_steal_slot()
868 spin_lock(&osb->osb_lock); in ocfs2_init_meta_steal_slot()
870 spin_unlock(&osb->osb_lock); in ocfs2_init_meta_steal_slot()
882 spin_lock(&osb->osb_lock); in __ocfs2_set_steal_slot()
887 spin_unlock(&osb->osb_lock); in __ocfs2_set_steal_slot()
894 spin_lock(&osb->osb_lock); in __ocfs2_get_steal_slot()
923 slot = osb->slot_num + 1; in ocfs2_steal_resource()
929 if (slot == osb->slot_num) in ocfs2_steal_resource()
1081 spin_lock(&osb->osb_lock); in ocfs2_reserve_new_inode()
[all …]
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 …]
A Dresize.c119 if (OCFS2_HAS_COMPAT_FEATURE(osb->sb, in ocfs2_update_last_group_and_inode()
185 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() local
256 osb->dev_str); in ocfs2_update_super_and_backups()
279 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_group_extend()
311 ocfs2_group_bitmap_size(osb->sb, 0, in ocfs2_group_extend()
312 osb->s_feature_incompat) * 8) { in ocfs2_group_extend()
362 ocfs2_commit_trans(osb, handle); in ocfs2_group_extend()
469 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_group_add()
492 ocfs2_group_bitmap_size(osb->sb, 0, in ocfs2_group_add()
493 osb->s_feature_incompat) * 8) { in ocfs2_group_add()
[all …]
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,
151 static inline u32 ocfs2_cluster_from_desc(struct ocfs2_super *osb, in ocfs2_cluster_from_desc() argument
158 if (bg_blkno == osb->first_cluster_group_blkno) in ocfs2_cluster_from_desc()
164 return ocfs2_blocks_to_clusters(osb->sb, bg_blkno); in ocfs2_cluster_from_desc()
169 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap() local
170 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
[all …]
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 …]
A Dioctl.c91 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fileattr_set() local
134 ocfs2_commit_trans(osb, handle); in ocfs2_fileattr_set()
166 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() local
171 oic.ic_clustersize = osb->s_clustersize; in ocfs2_info_handle_clustersize()
185 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() local
190 oim.im_max_slots = osb->max_slots; in ocfs2_info_handle_maxslots()
204 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() local
223 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() local
242 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features() local
247 oif.if_compat_features = osb->s_feature_compat; in ocfs2_info_handle_fs_features()
[all …]
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()
1279 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1946 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space()
2091 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space()
2704 if (!ocfs2_refcount_tree(osb)) in ocfs2_remap_file_range()
[all …]
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 …]
A Dalloc.c226 osb->dev_str, in ocfs2_dinode_insert_check()
1002 struct ocfs2_super *osb = in ocfs2_create_new_meta_bhs() local
4792 struct ocfs2_super *osb = in ocfs2_add_clusters_in_btree() local
6085 struct ocfs2_super *osb = in ocfs2_truncate_log_worker() local
6100 if (osb->osb_tl_inode && in ocfs2_schedule_truncate_log_flush()
6107 queue_delayed_work(osb->ocfs2_wq, &osb->osb_truncate_log_wq, in ocfs2_schedule_truncate_log_flush()
6324 brelse(osb->osb_tl_bh); in ocfs2_truncate_log_shutdown()
6325 iput(osb->osb_tl_inode); in ocfs2_truncate_log_shutdown()
6336 osb->slot_num, in ocfs2_truncate_log_init()
6668 struct ocfs2_super *osb = in ocfs2_reuse_blk_from_dealloc() local
[all …]
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,
A Drefcounttree.c258 if (osb->osb_ref_tree_lru && osb->osb_ref_tree_lru == tree) in ocfs2_erase_refcount_tree_from_list_no_lock()
265 spin_lock(&osb->osb_lock); in ocfs2_erase_refcount_tree_from_list()
267 spin_unlock(&osb->osb_lock); in ocfs2_erase_refcount_tree_from_list()
332 spin_lock(&osb->osb_lock); in ocfs2_get_refcount_tree()
333 if (osb->osb_ref_tree_lru && in ocfs2_get_refcount_tree()
341 spin_unlock(&osb->osb_lock); in ocfs2_get_refcount_tree()
371 spin_lock(&osb->osb_lock); in ocfs2_get_refcount_tree()
633 spin_lock(&osb->osb_lock); in ocfs2_create_refcount_tree()
657 spin_lock(&osb->osb_lock); in ocfs2_create_refcount_tree()
4502 struct ocfs2_super *osb; in ocfs2_reflink_remap_extent() local
[all …]
A Daops.c190 if (!ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
1488 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline()
1503 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline()
1515 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline()
1682 if (ocfs2_sparse_alloc(osb)) in ocfs2_write_begin_nolock()
1837 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_nolock()
2066 ocfs2_commit_trans(osb, handle); in ocfs2_write_end_nolock()
2155 len = osb->s_clustersize - (pos & (osb->s_clustersize - 1)); in ocfs2_dio_wr_get_block()
2226 if (ocfs2_sparse_alloc(osb)) in ocfs2_dio_wr_get_block()
2389 ocfs2_commit_trans(osb, handle); in ocfs2_dio_end_io_write()
[all …]

Completed in 98 milliseconds

12