/linux/fs/ocfs2/ |
H A D | journal.c | 69 static inline int ocfs2_wait_on_mount(struct ocfs2_super *osb) in ocfs2_wait_on_mount() 74 static inline int ocfs2_wait_on_quotas(struct ocfs2_super *osb) in ocfs2_wait_on_quotas() 96 static void ocfs2_replay_map_set_state(struct ocfs2_super *osb, int state) in ocfs2_replay_map_set_state() 108 int ocfs2_compute_replay_slots(struct ocfs2_super *osb) in ocfs2_compute_replay_slots() 141 static void ocfs2_queue_replay_slots(struct ocfs2_super *osb, in ocfs2_queue_replay_slots() 161 void ocfs2_free_replay_slots(struct ocfs2_super *osb) in ocfs2_free_replay_slots() 172 int ocfs2_recovery_init(struct ocfs2_super *osb) in ocfs2_recovery_init() 193 static int ocfs2_recovery_thread_running(struct ocfs2_super *osb) in ocfs2_recovery_thread_running() 198 static void ocfs2_recovery_disable(struct ocfs2_super *osb, in ocfs2_recovery_disable() 228 void ocfs2_recovery_disable_quota(struct ocfs2_super *osb) in ocfs2_recovery_disable_quota() [all …]
|
H A D | localalloc.c | 101 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb) in ocfs2_la_default_mb() 179 void ocfs2_la_set_sizes(struct ocfs2_super *osb, int requested_mb) in ocfs2_la_set_sizes() 206 static inline int ocfs2_la_state_enabled(struct ocfs2_super *osb) in ocfs2_la_state_enabled() 212 void ocfs2_local_alloc_seen_free_bits(struct ocfs2_super *osb, in ocfs2_local_alloc_seen_free_bits() 228 struct ocfs2_super *osb = in ocfs2_la_enable_worker() local 243 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb, u64 bits) in ocfs2_alloc_should_use_local() 269 int ocfs2_load_local_alloc(struct ocfs2_super *osb) in ocfs2_load_local_alloc() 367 void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb) in ocfs2_shutdown_local_alloc() 477 int ocfs2_begin_local_alloc_recovery(struct ocfs2_super *osb, in ocfs2_begin_local_alloc_recovery() 547 int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb, in ocfs2_complete_local_alloc_recovery() [all …]
|
H A D | dlmglue.c | 343 static inline void ocfs2_cluster_unlock(struct ocfs2_super *osb, in ocfs2_cluster_unlock() 511 static void ocfs2_lock_res_init_common(struct ocfs2_super *osb, in ocfs2_lock_res_init_common() 659 struct ocfs2_super *osb) in ocfs2_super_lock_res_init() 671 struct ocfs2_super *osb) in ocfs2_rename_lock_res_init() 682 struct ocfs2_super *osb) in ocfs2_nfs_sync_lock_res_init() 692 static void ocfs2_nfs_sync_lock_init(struct ocfs2_super *osb) in ocfs2_nfs_sync_lock_init() 698 void ocfs2_trim_fs_lock_res_init(struct ocfs2_super *osb) in ocfs2_trim_fs_lock_res_init() 711 void ocfs2_trim_fs_lock_res_uninit(struct ocfs2_super *osb) in ocfs2_trim_fs_lock_res_uninit() 722 struct ocfs2_super *osb) in ocfs2_orphan_scan_lock_res_init() 757 struct ocfs2_super *osb, u64 ref_blkno, in ocfs2_refcount_lock_res_init() [all …]
|
H A D | super.c | 216 static int ocfs2_osb_dump(struct ocfs2_super *osb, char *buf, int len) in ocfs2_osb_dump() 345 struct ocfs2_super *osb = inode->i_private; in ocfs2_osb_debug_open() local 400 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_fs() local 422 static int ocfs2_need_system_inode(struct ocfs2_super *osb, int ino) in ocfs2_need_system_inode() 435 static int ocfs2_init_global_system_inodes(struct ocfs2_super *osb) in ocfs2_init_global_system_inodes() 480 static int ocfs2_init_local_system_inodes(struct ocfs2_super *osb) in ocfs2_init_local_system_inodes() 509 static void ocfs2_release_system_inodes(struct ocfs2_super *osb) in ocfs2_release_system_inodes() 613 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_reconfigure() local 811 static int ocfs2_verify_heartbeat(struct ocfs2_super *osb) in ocfs2_verify_heartbeat() 852 static int ocfs2_verify_userspace_stack(struct ocfs2_super *osb, in ocfs2_verify_userspace_stack() [all …]
|
H A D | heartbeat.c | 36 void ocfs2_init_node_maps(struct ocfs2_super *osb) in ocfs2_init_node_maps() 44 struct ocfs2_super *osb = data; in ocfs2_do_node_down() local 63 void ocfs2_node_map_set_bit(struct ocfs2_super *osb, in ocfs2_node_map_set_bit() 75 void ocfs2_node_map_clear_bit(struct ocfs2_super *osb, in ocfs2_node_map_clear_bit() 87 int ocfs2_node_map_test_bit(struct ocfs2_super *osb, in ocfs2_node_map_test_bit()
|
H A D | slot_map.c | 116 int ocfs2_refresh_slot_info(struct ocfs2_super *osb) in ocfs2_refresh_slot_info() 183 static int ocfs2_update_disk_slot(struct ocfs2_super *osb, in ocfs2_update_disk_slot() 208 static int ocfs2_slot_map_physical_size(struct ocfs2_super *osb, in ocfs2_slot_map_physical_size() 271 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num) in ocfs2_node_num_to_slot() 283 int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num, in ocfs2_slot_to_node_num_locked() 321 int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num) in ocfs2_clear_slot() 335 static int ocfs2_map_slot_buffers(struct ocfs2_super *osb, in ocfs2_map_slot_buffers() 399 int ocfs2_init_slot_info(struct ocfs2_super *osb) in ocfs2_init_slot_info() 438 void ocfs2_free_slot_info(struct ocfs2_super *osb) in ocfs2_free_slot_info() 446 int ocfs2_find_slot(struct ocfs2_super *osb) in ocfs2_find_slot() [all …]
|
H A D | suballoc.c | 322 static void ocfs2_bg_discontig_add_extent(struct ocfs2_super *osb, in ocfs2_bg_discontig_add_extent() 353 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill() local 421 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() 465 static int ocfs2_block_group_claim_bits(struct ocfs2_super *osb, in ocfs2_block_group_claim_bits() 493 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_grow_discontig() local 589 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_alloc_discontig() local 655 static int ocfs2_block_group_alloc(struct ocfs2_super *osb, in ocfs2_block_group_alloc() 768 static int ocfs2_reserve_suballoc_bits(struct ocfs2_super *osb, in ocfs2_reserve_suballoc_bits() 860 static void ocfs2_init_inode_steal_slot(struct ocfs2_super *osb) in ocfs2_init_inode_steal_slot() 868 static void ocfs2_init_meta_steal_slot(struct ocfs2_super *osb) in ocfs2_init_meta_steal_slot() [all …]
|
H A D | namei.c | 214 static void ocfs2_cleanup_add_entry_failure(struct ocfs2_super *osb, in ocfs2_cleanup_add_entry_failure() 238 struct ocfs2_super *osb; in ocfs2_mknod() local 519 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_mknod_locked() local 622 static int ocfs2_mknod_locked(struct ocfs2_super *osb, in ocfs2_mknod_locked() 695 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_link() local 885 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_unlink() local 1051 static int ocfs2_check_if_ancestor(struct ocfs2_super *osb, in ocfs2_check_if_ancestor() 1114 static int ocfs2_double_lock(struct ocfs2_super *osb, in ocfs2_double_lock() 1220 struct ocfs2_super *osb = NULL; in ocfs2_rename() local 1711 static int ocfs2_create_symlink_data(struct ocfs2_super *osb, in ocfs2_create_symlink_data() [all …]
|
H A D | ioctl.c | 91 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fileattr_set() local 166 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() local 185 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() local 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 263 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_journal_size() local 278 static int ocfs2_info_scan_inode_alloc(struct ocfs2_super *osb, in ocfs2_info_scan_inode_alloc() 334 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freeinode() local 433 static int ocfs2_info_freefrag_scan_chain(struct ocfs2_super *osb, in ocfs2_info_freefrag_scan_chain() [all …]
|
H A D | inode.c | 119 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, in ocfs2_iget() 340 struct ocfs2_super *osb; in ocfs2_populate_inode() local 481 struct ocfs2_super *osb; in ocfs2_read_locked_inode() local 654 static int ocfs2_truncate_for_delete(struct ocfs2_super *osb, in ocfs2_truncate_for_delete() 719 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode() local 795 static int ocfs2_check_orphan_recovery_state(struct ocfs2_super *osb, in ocfs2_check_orphan_recovery_state() 814 static void ocfs2_signal_wipe_completion(struct ocfs2_super *osb, in ocfs2_signal_wipe_completion() 830 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_wipe_inode() local 919 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_inode_is_valid_to_delete() local 1190 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_clear_inode() local
|
H A D | sysfile.c | 40 static struct inode **get_local_system_inode(struct ocfs2_super *osb, in get_local_system_inode() 88 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, in ocfs2_get_system_file_inode() 123 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, in _ocfs2_get_system_file_inode()
|
H A D | move_extents.c | 56 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent() local 153 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_meta_allocator_move_extents() local 201 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() local 371 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group() local 472 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal() local 569 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent() local 767 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range() local 899 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents() local
|
H A D | buffer_head_io.c | 38 int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, in ocfs2_write_block() 89 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, in ocfs2_read_blocks_sync() 428 int ocfs2_write_super_or_backup(struct ocfs2_super *osb, in ocfs2_write_super_or_backup()
|
H A D | ocfs2.h | 530 static inline int ocfs2_sparse_alloc(struct ocfs2_super *osb) in ocfs2_sparse_alloc() 537 static inline int ocfs2_writes_unwritten_extents(struct ocfs2_super *osb) in ocfs2_writes_unwritten_extents() 550 static inline int ocfs2_supports_append_dio(struct ocfs2_super *osb) in ocfs2_supports_append_dio() 558 static inline int ocfs2_supports_inline_data(struct ocfs2_super *osb) in ocfs2_supports_inline_data() 565 static inline int ocfs2_supports_xattr(struct ocfs2_super *osb) in ocfs2_supports_xattr() 572 static inline int ocfs2_meta_ecc(struct ocfs2_super *osb) in ocfs2_meta_ecc() 579 static inline int ocfs2_supports_indexed_dirs(struct ocfs2_super *osb) in ocfs2_supports_indexed_dirs() 586 static inline int ocfs2_supports_discontig_bg(struct ocfs2_super *osb) in ocfs2_supports_discontig_bg() 593 static inline unsigned int ocfs2_link_max(struct ocfs2_super *osb) in ocfs2_link_max() 630 static inline int ocfs2_refcount_tree(struct ocfs2_super *osb) in ocfs2_refcount_tree() [all …]
|
H A D | quota_global.c | 608 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_dquot_helper() local 672 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_write_dquot() local 711 struct ocfs2_super *osb = container_of(work, struct ocfs2_super, in ocfs2_drop_dquot_refs() local 735 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_release_dquot() local 814 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_acquire_dquot() local 939 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mark_dquot_dirty() local
|
H A D | aops.c | 48 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block() local 134 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block() local 487 static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, in ocfs2_figure_cluster_boundaries() 523 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_folio_regions() 819 struct ocfs2_super *osb, loff_t pos, in ocfs2_alloc_write_ctxt() 1205 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() local 1244 static void ocfs2_set_target_boundaries(struct ocfs2_super *osb, in ocfs2_set_target_boundaries() 1454 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline() local 1633 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_nolock() local 1932 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_end_nolock() local [all …]
|
H A D | dir.c | 71 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() local 89 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() local 254 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_dx_dir_name_hash() local 844 static inline unsigned int __ocfs2_dx_dir_hash_idx(struct ocfs2_super *osb, in __ocfs2_dx_dir_hash_idx() 850 static inline unsigned int ocfs2_dx_dir_hash_idx(struct ocfs2_super *osb, in ocfs2_dx_dir_hash_idx() 2212 static int ocfs2_fill_new_dir_id(struct ocfs2_super *osb, in ocfs2_fill_new_dir_id() 2245 static int ocfs2_fill_new_dir_el(struct ocfs2_super *osb, in ocfs2_fill_new_dir_el() 2315 static int ocfs2_dx_dir_attach_index(struct ocfs2_super *osb, in ocfs2_dx_dir_attach_index() 2407 static int ocfs2_dx_dir_format_cluster(struct ocfs2_super *osb, in ocfs2_dx_dir_format_cluster() 2469 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_dx_dir_new_cluster() local [all …]
|
H A D | filecheck.c | 166 int ocfs2_filecheck_create_sysfs(struct ocfs2_super *osb) in ocfs2_filecheck_create_sysfs() 196 void ocfs2_filecheck_remove_sysfs(struct ocfs2_super *osb) in ocfs2_filecheck_remove_sysfs() 406 ocfs2_filecheck_handle(struct ocfs2_super *osb, in ocfs2_filecheck_handle() 431 struct ocfs2_super *osb = container_of(ent, struct ocfs2_super, in ocfs2_filecheck_handle_entry() local
|
H A D | locks.c | 101 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() local 119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock() local
|
H A D | acl.c | 295 struct ocfs2_super *osb; in ocfs2_iop_get_acl() local 323 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() local 359 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl() local
|
H A D | alloc.c | 219 struct ocfs2_super *osb = OCFS2_SB(oi->vfs_inode.i_sb); in ocfs2_dinode_insert_check() local 1002 struct ocfs2_super *osb = in ocfs2_create_new_meta_bhs() local 3118 static int ocfs2_remove_rightmost_empty_extent(struct ocfs2_super *osb, in ocfs2_remove_rightmost_empty_extent() 4800 struct ocfs2_super *osb = in ocfs2_add_clusters_in_btree() local 5671 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_reserve_blocks_for_rec_trunc() local 5713 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_btree_range() local 5818 int ocfs2_truncate_log_needs_flush(struct ocfs2_super *osb) in ocfs2_truncate_log_needs_flush() 5851 int ocfs2_truncate_log_append(struct ocfs2_super *osb, in ocfs2_truncate_log_append() 5927 static int ocfs2_replay_truncate_records(struct ocfs2_super *osb, in ocfs2_replay_truncate_records() 6000 int __ocfs2_flush_truncate_log(struct ocfs2_super *osb) in __ocfs2_flush_truncate_log() [all …]
|
H A D | reservations.c | 34 int ocfs2_dir_resv_allowed(struct ocfs2_super *osb) in ocfs2_dir_resv_allowed() 42 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_resv_window_bits() local 75 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_dump_resv() local 201 void ocfs2_resmap_init(struct ocfs2_super *osb, in ocfs2_resmap_init()
|
H A D | suballoc.h | 152 static inline u32 ocfs2_cluster_from_desc(struct ocfs2_super *osb, in ocfs2_cluster_from_desc() 170 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap() local
|
H A D | journal.h | 133 static inline void ocfs2_ci_set_new(struct ocfs2_super *osb, in ocfs2_ci_set_new() 187 static inline void ocfs2_start_checkpoint(struct ocfs2_super *osb) in ocfs2_start_checkpoint() 194 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_checkpoint_inode() local
|
H A D | xattr.c | 302 static inline u16 ocfs2_xattr_buckets_per_cluster(struct ocfs2_super *osb) in ocfs2_xattr_buckets_per_cluster() 579 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init() local 619 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init() local 2371 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_value_outside() local 2491 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_xattr_free_block() local 2725 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_xattr_ibody_init() local 3259 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_xattr_set_ctxt() local 3539 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_xattr_set() local 4875 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_mv_xattr_buckets() local 5103 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_add_new_xattr_cluster() local [all …]
|