/linux-master/fs/ocfs2/ |
H 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);
|
H 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...] |
H 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,
|
H A D | heartbeat.c | 36 void ocfs2_init_node_maps(struct ocfs2_super *osb) argument 38 spin_lock_init(&osb->node_map_lock); 39 ocfs2_node_map_init(&osb->osb_recovering_orphan_dirs); 44 struct ocfs2_super *osb = data; local 46 BUG_ON(osb->node_num == node_num); 50 if (!osb->cconn) { 60 ocfs2_recovery_thread(osb, node_num); 63 void ocfs2_node_map_set_bit(struct ocfs2_super *osb, argument 70 spin_lock(&osb->node_map_lock); 72 spin_unlock(&osb 75 ocfs2_node_map_clear_bit(struct ocfs2_super *osb, struct ocfs2_node_map *map, int bit) argument 87 ocfs2_node_map_test_bit(struct ocfs2_super *osb, struct ocfs2_node_map *map, int bit) argument [all...] |
H A D | sysfile.h | 13 struct inode * ocfs2_get_system_file_inode(struct ocfs2_super *osb,
|
H A D | sysfile.c | 26 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, 40 static struct inode **get_local_system_inode(struct ocfs2_super *osb, argument 51 spin_lock(&osb->osb_lock); 52 local_system_inodes = osb->local_system_inodes; 53 spin_unlock(&osb->osb_lock); 59 osb->max_slots), 71 spin_lock(&osb->osb_lock); 72 if (osb->local_system_inodes) { 75 local_system_inodes = osb->local_system_inodes; 77 osb 88 ocfs2_get_system_file_inode(struct ocfs2_super *osb, int type, u32 slot) argument 123 _ocfs2_get_system_file_inode(struct ocfs2_super *osb, int type, u32 slot) argument [all...] |
H A D | super.c | 97 static void ocfs2_delete_osb(struct ocfs2_super *osb); 103 static int ocfs2_init_global_system_inodes(struct ocfs2_super *osb); 104 static int ocfs2_init_local_system_inodes(struct ocfs2_super *osb); 105 static void ocfs2_release_system_inodes(struct ocfs2_super *osb); 106 static int ocfs2_check_volume(struct ocfs2_super *osb); 121 static int ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend); 122 static int ocfs2_enable_quotas(struct ocfs2_super *osb); 123 static void ocfs2_disable_quotas(struct ocfs2_super *osb); 212 static int ocfs2_osb_dump(struct ocfs2_super *osb, char *buf, int len) argument 214 struct ocfs2_cluster_connection *cconn = osb 341 struct ocfs2_super *osb = inode->i_private; local 396 struct ocfs2_super *osb = OCFS2_SB(sb); local 418 ocfs2_need_system_inode(struct ocfs2_super *osb, int ino) argument 431 ocfs2_init_global_system_inodes(struct ocfs2_super *osb) argument 476 ocfs2_init_local_system_inodes(struct ocfs2_super *osb) argument 505 ocfs2_release_system_inodes(struct ocfs2_super *osb) argument 608 struct ocfs2_super *osb = OCFS2_SB(sb); local 807 ocfs2_verify_heartbeat(struct ocfs2_super *osb) argument 848 ocfs2_verify_userspace_stack(struct ocfs2_super *osb, struct mount_options *mopt) argument 872 ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend) argument 903 ocfs2_enable_quotas(struct ocfs2_super *osb) argument 943 ocfs2_disable_quotas(struct ocfs2_super *osb) argument 975 struct ocfs2_super *osb = NULL; local 1472 struct ocfs2_super *osb = OCFS2_SB(root->d_sb); local 1613 struct ocfs2_super *osb; local 1781 struct ocfs2_super *osb = OCFS2_SB(sb); local 1852 struct ocfs2_super *osb = NULL; local 1942 ocfs2_setup_osb_uuid(struct ocfs2_super *osb, const unsigned char *uuid, unsigned uuid_bytes) argument 1969 ocfs2_journal_addressable(struct ocfs2_super *osb) argument 2005 struct ocfs2_super *osb; local 2382 ocfs2_check_volume(struct ocfs2_super *osb) argument 2489 ocfs2_delete_osb(struct ocfs2_super *osb) argument 2522 struct ocfs2_super *osb = OCFS2_SB(sb); local [all...] |
H A D | journal.c | 49 static int ocfs2_recover_node(struct ocfs2_super *osb, 52 static int ocfs2_commit_cache(struct ocfs2_super *osb); 53 static int __ocfs2_wait_on_mount(struct ocfs2_super *osb, int quota); 54 static int ocfs2_journal_toggle_dirty(struct ocfs2_super *osb, 56 static int ocfs2_trylock_journal(struct ocfs2_super *osb, 58 static int ocfs2_recover_orphans(struct ocfs2_super *osb, 69 static inline int ocfs2_wait_on_mount(struct ocfs2_super *osb) argument 71 return __ocfs2_wait_on_mount(osb, 0); 74 static inline int ocfs2_wait_on_quotas(struct ocfs2_super *osb) argument 76 return __ocfs2_wait_on_mount(osb, 96 ocfs2_replay_map_set_state(struct ocfs2_super *osb, int state) argument 108 ocfs2_compute_replay_slots(struct ocfs2_super *osb) argument 141 ocfs2_queue_replay_slots(struct ocfs2_super *osb, enum ocfs2_orphan_reco_type orphan_reco_type) argument 161 ocfs2_free_replay_slots(struct ocfs2_super *osb) argument 172 ocfs2_recovery_init(struct ocfs2_super *osb) argument 196 ocfs2_recovery_thread_running(struct ocfs2_super *osb) argument 202 ocfs2_recovery_exit(struct ocfs2_super *osb) argument 229 __ocfs2_recovery_map_test(struct ocfs2_super *osb, unsigned int node_num) argument 246 ocfs2_recovery_map_set(struct ocfs2_super *osb, unsigned int node_num) argument 267 ocfs2_recovery_map_clear(struct ocfs2_super *osb, unsigned int node_num) argument 290 ocfs2_commit_cache(struct ocfs2_super *osb) argument 331 ocfs2_start_trans(struct ocfs2_super *osb, int max_buffs) argument 371 ocfs2_commit_trans(struct ocfs2_super *osb, handle_t *handle) argument 638 struct ocfs2_super *osb = local 794 ocfs2_set_journal_params(struct ocfs2_super *osb) argument 815 ocfs2_journal_alloc(struct ocfs2_super *osb) argument 855 ocfs2_journal_init(struct ocfs2_super *osb, int *dirty) argument 959 ocfs2_journal_toggle_dirty(struct ocfs2_super *osb, int dirty, int replayed) argument 997 ocfs2_journal_shutdown(struct ocfs2_super *osb) argument 1097 struct ocfs2_super *osb; local 1166 ocfs2_recovery_completed(struct ocfs2_super *osb) argument 1178 ocfs2_wait_for_recovery(struct ocfs2_super *osb) argument 1199 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1264 struct ocfs2_super *osb = journal->j_osb; local 1372 ocfs2_complete_mount_recovery(struct ocfs2_super *osb) argument 1394 ocfs2_complete_quota_recovery(struct ocfs2_super *osb) argument 1410 struct ocfs2_super *osb = arg; local 1543 ocfs2_recovery_thread(struct ocfs2_super *osb, int node_num) argument 1570 ocfs2_read_journal_inode(struct ocfs2_super *osb, int slot_num, struct buffer_head **bh, struct inode **ret_inode) argument 1608 ocfs2_replay_journal(struct ocfs2_super *osb, int node_num, int slot_num) argument 1755 ocfs2_recover_node(struct ocfs2_super *osb, int node_num, int slot_num) argument 1812 ocfs2_trylock_journal(struct ocfs2_super *osb, int slot_num) argument 1851 ocfs2_mark_dead_nodes(struct ocfs2_super *osb) argument 1958 ocfs2_queue_orphan_scan(struct ocfs2_super *osb) argument 2010 struct ocfs2_super *osb; local 2024 ocfs2_orphan_scan_stop(struct ocfs2_super *osb) argument 2037 ocfs2_orphan_scan_init(struct ocfs2_super *osb) argument 2049 ocfs2_orphan_scan_start(struct ocfs2_super *osb) argument 2067 struct ocfs2_super *osb; member in struct:ocfs2_orphan_filldir_priv 2116 ocfs2_queue_orphans(struct ocfs2_super *osb, int slot, struct inode **head, enum ocfs2_orphan_reco_type orphan_reco_type) argument 2162 ocfs2_orphan_recovery_can_continue(struct ocfs2_super *osb, int slot) argument 2173 ocfs2_mark_recovering_orphan_dir(struct ocfs2_super *osb, int slot) argument 2192 ocfs2_clear_recovering_orphan_dir(struct ocfs2_super *osb, int slot) argument 2216 ocfs2_recover_orphans(struct ocfs2_super *osb, int slot, enum ocfs2_orphan_reco_type orphan_reco_type) argument 2305 __ocfs2_wait_on_mount(struct ocfs2_super *osb, int quota) argument 2330 struct ocfs2_super *osb = arg; local 2376 ocfs2_check_journals_nolocks(struct ocfs2_super *osb) argument [all...] |
H A D | localalloc.c | 37 static int ocfs2_local_alloc_find_clear_bits(struct ocfs2_super *osb, 44 static int ocfs2_sync_local_to_main(struct ocfs2_super *osb, 50 static int ocfs2_local_alloc_reserve_for_window(struct ocfs2_super *osb, 55 static int ocfs2_local_alloc_new_window(struct ocfs2_super *osb, 59 static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb, 101 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb) argument 107 struct super_block *sb = osb->sb; 109 gd_mb = ocfs2_clusters_to_megabytes(osb->sb, 110 8 * ocfs2_group_bitmap_size(sb, 0, osb->s_feature_incompat)); 117 if ((sb->s_blocksize == 512 && osb 179 ocfs2_la_set_sizes(struct ocfs2_super *osb, int requested_mb) argument 206 ocfs2_la_state_enabled(struct ocfs2_super *osb) argument 212 ocfs2_local_alloc_seen_free_bits(struct ocfs2_super *osb, unsigned int num_clusters) argument 227 struct ocfs2_super *osb = local 242 ocfs2_alloc_should_use_local(struct ocfs2_super *osb, u64 bits) argument 268 ocfs2_load_local_alloc(struct ocfs2_super *osb) argument 366 ocfs2_shutdown_local_alloc(struct ocfs2_super *osb) argument 476 ocfs2_begin_local_alloc_recovery(struct ocfs2_super *osb, int slot_num, struct ocfs2_dinode **alloc_copy) argument 546 ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb, struct ocfs2_dinode *alloc) argument 614 ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context *ac) argument 713 ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, u32 bits_wanted, u32 *bit_off, u32 *num_bits) argument 769 ocfs2_free_local_alloc_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, u32 bit_off, u32 num_bits) argument 822 ocfs2_local_alloc_find_clear_bits(struct ocfs2_super *osb, struct ocfs2_dinode *alloc, u32 *numbits, struct ocfs2_alloc_reservation *resv) argument 947 ocfs2_sync_local_to_main(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_dinode *alloc, struct inode *main_bm_inode, struct buffer_head *main_bm_bh) argument 1039 ocfs2_recalc_la_window(struct ocfs2_super *osb, enum ocfs2_la_event event) argument 1096 ocfs2_local_alloc_reserve_for_window(struct ocfs2_super *osb, struct ocfs2_alloc_context **ac, struct inode **bitmap_inode, struct buffer_head **bitmap_bh) argument 1146 ocfs2_local_alloc_new_window(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac) argument 1234 ocfs2_local_alloc_slide_window(struct ocfs2_super *osb, struct inode *local_alloc_inode) argument [all...] |
H A D | slot_map.c | 116 int ocfs2_refresh_slot_info(struct ocfs2_super *osb) argument 119 struct ocfs2_slot_info *si = osb->slot_info; 137 spin_lock(&osb->osb_lock); 139 spin_unlock(&osb->osb_lock); 183 static int ocfs2_update_disk_slot(struct ocfs2_super *osb, argument 190 spin_lock(&osb->osb_lock); 195 spin_unlock(&osb->osb_lock); 197 status = ocfs2_write_block(osb, bh, INODE_CACHE(si->si_inode)); 208 static int ocfs2_slot_map_physical_size(struct ocfs2_super *osb, argument 214 if (ocfs2_uses_extended_slot_map(osb)) { 271 ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num) argument 283 ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num, unsigned int *node_num) argument 321 ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num) argument 335 ocfs2_map_slot_buffers(struct ocfs2_super *osb, struct ocfs2_slot_info *si) argument 399 ocfs2_init_slot_info(struct ocfs2_super *osb) argument 438 ocfs2_free_slot_info(struct ocfs2_super *osb) argument 446 ocfs2_find_slot(struct ocfs2_super *osb) argument 499 ocfs2_put_slot(struct ocfs2_super *osb) argument [all...] |
H A D | namei.h | 20 int ocfs2_orphan_del(struct ocfs2_super *osb, 29 int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb, 31 int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
|
H A D | ocfs2.h | 322 * Could protect more on osb as it's very short lived. 357 * Must hold local alloc i_rwsem and osb->osb_lock to change 488 static inline int ocfs2_sparse_alloc(struct ocfs2_super *osb) argument 490 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC) 495 static inline int ocfs2_writes_unwritten_extents(struct ocfs2_super *osb) argument 500 if (!ocfs2_sparse_alloc(osb)) 503 if (osb->s_feature_ro_compat & OCFS2_FEATURE_RO_COMPAT_UNWRITTEN) 508 static inline int ocfs2_supports_append_dio(struct ocfs2_super *osb) argument 510 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_APPEND_DIO) 516 static inline int ocfs2_supports_inline_data(struct ocfs2_super *osb) argument 523 ocfs2_supports_xattr(struct ocfs2_super *osb) argument 530 ocfs2_meta_ecc(struct ocfs2_super *osb) argument 537 ocfs2_supports_indexed_dirs(struct ocfs2_super *osb) argument 544 ocfs2_supports_discontig_bg(struct ocfs2_super *osb) argument 551 ocfs2_link_max(struct ocfs2_super *osb) argument 588 ocfs2_refcount_tree(struct ocfs2_super *osb) argument 599 ocfs2_set_osb_flag(struct ocfs2_super *osb, unsigned long flag) argument 607 ocfs2_set_ro_flag(struct ocfs2_super *osb, int hard) argument 619 ocfs2_is_hard_readonly(struct ocfs2_super *osb) argument 630 ocfs2_is_soft_readonly(struct ocfs2_super *osb) argument 641 ocfs2_clusterinfo_valid(struct ocfs2_super *osb) argument 648 ocfs2_userspace_stack(struct ocfs2_super *osb) argument 657 ocfs2_o2cb_stack(struct ocfs2_super *osb) argument 666 ocfs2_cluster_o2cb_global_heartbeat(struct ocfs2_super *osb) argument 672 ocfs2_mount_local(struct ocfs2_super *osb) argument 677 ocfs2_uses_extended_slot_map(struct ocfs2_super *osb) argument [all...] |
H A D | journal.h | 133 static inline void ocfs2_ci_set_new(struct ocfs2_super *osb, argument 137 ci->ci_created_trans = osb->journal->j_trans_id; 142 void ocfs2_orphan_scan_init(struct ocfs2_super *osb); 143 void ocfs2_orphan_scan_start(struct ocfs2_super *osb); 144 void ocfs2_orphan_scan_stop(struct ocfs2_super *osb); 147 void ocfs2_wait_for_recovery(struct ocfs2_super *osb); 149 int ocfs2_recovery_init(struct ocfs2_super *osb); 150 void ocfs2_recovery_exit(struct ocfs2_super *osb); 152 int ocfs2_compute_replay_slots(struct ocfs2_super *osb); 153 void ocfs2_free_replay_slots(struct ocfs2_super *osb); 186 ocfs2_start_checkpoint(struct ocfs2_super *osb) argument 193 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local [all...] |
H A D | dlmglue.c | 98 static void ocfs2_dentry_post_unlock(struct ocfs2_super *osb, 333 static int ocfs2_lock_create(struct ocfs2_super *osb, 339 static void __ocfs2_cluster_unlock(struct ocfs2_super *osb, 342 static inline void ocfs2_cluster_unlock(struct ocfs2_super *osb, argument 346 __ocfs2_cluster_unlock(osb, lockres, level, _RET_IP_); 353 static void ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, 367 static void ocfs2_downconvert_on_unlock(struct ocfs2_super *osb, 371 static void ocfs2_drop_osb_locks(struct ocfs2_super *osb); 375 static int ocfs2_downconvert_lock(struct ocfs2_super *osb, 380 static int ocfs2_prepare_cancel_convert(struct ocfs2_super *osb, 510 ocfs2_lock_res_init_common(struct ocfs2_super *osb, struct ocfs2_lock_res *res, enum ocfs2_lock_type type, struct ocfs2_lock_res_ops *ops, void *priv) argument 657 ocfs2_super_lock_res_init(struct ocfs2_lock_res *res, struct ocfs2_super *osb) argument 669 ocfs2_rename_lock_res_init(struct ocfs2_lock_res *res, struct ocfs2_super *osb) argument 680 ocfs2_nfs_sync_lock_res_init(struct ocfs2_lock_res *res, struct ocfs2_super *osb) argument 691 ocfs2_nfs_sync_lock_init(struct ocfs2_super *osb) argument 697 ocfs2_trim_fs_lock_res_init(struct ocfs2_super *osb) argument 710 ocfs2_trim_fs_lock_res_uninit(struct ocfs2_super *osb) argument 720 ocfs2_orphan_scan_lock_res_init(struct ocfs2_lock_res *res, struct ocfs2_super *osb) argument 755 ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, struct ocfs2_super *osb, u64 ref_blkno, unsigned int generation) argument 1066 __lockres_clear_pending(struct ocfs2_lock_res *lockres, unsigned int generation, struct ocfs2_super *osb) argument 1092 lockres_clear_pending(struct ocfs2_lock_res *lockres, unsigned int generation, struct ocfs2_super *osb) argument 1116 struct ocfs2_super *osb = ocfs2_get_lockres_osb(lockres); local 1147 struct ocfs2_super *osb = ocfs2_get_lockres_osb(lockres); local 1308 ocfs2_lock_create(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 dlm_flags) argument 1468 __ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 lkm_flags, int arg_flags, int l_subclass, unsigned long caller_ip) argument 1671 ocfs2_cluster_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, u32 lkm_flags, int arg_flags) argument 1682 __ocfs2_cluster_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int level, unsigned long caller_ip) argument 1699 ocfs2_create_new_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int ex, int local) argument 1725 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1767 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1791 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1812 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1829 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1851 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1888 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 1909 struct ocfs2_super *osb = ocfs2_get_lockres_osb(lockres); local 1980 struct ocfs2_super *osb = OCFS2_SB(file->f_mapping->host->i_sb); local 2076 struct ocfs2_super *osb = OCFS2_SB(file->f_mapping->host->i_sb); local 2113 ocfs2_downconvert_on_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 2321 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2434 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2621 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2749 ocfs2_orphan_scan_lock(struct ocfs2_super *osb, u32 *seqno) argument 2776 ocfs2_orphan_scan_unlock(struct ocfs2_super *osb, u32 seqno) argument 2790 ocfs2_super_lock(struct ocfs2_super *osb, int ex) argument 2829 ocfs2_super_unlock(struct ocfs2_super *osb, int ex) argument 2839 ocfs2_rename_lock(struct ocfs2_super *osb) argument 2857 ocfs2_rename_unlock(struct ocfs2_super *osb) argument 2865 ocfs2_nfs_sync_lock(struct ocfs2_super *osb, int ex) argument 2895 ocfs2_nfs_sync_unlock(struct ocfs2_super *osb, int ex) argument 2908 ocfs2_trim_fs_lock(struct ocfs2_super *osb, struct ocfs2_trim_fs_info *info, int trylock) argument 2949 ocfs2_trim_fs_unlock(struct ocfs2_super *osb, struct ocfs2_trim_fs_info *info) argument 2977 struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb); local 3001 struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb); local 3280 struct ocfs2_super *osb; local 3306 ocfs2_dlm_init_debug(struct ocfs2_super *osb) argument 3318 ocfs2_dlm_shutdown_debug(struct ocfs2_super *osb) argument 3326 ocfs2_dlm_init(struct ocfs2_super *osb) argument 3387 ocfs2_dlm_shutdown(struct ocfs2_super *osb, int hangup_pending) argument 3416 ocfs2_drop_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 3507 ocfs2_mark_lockres_freeing(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 3567 ocfs2_simple_drop_lockres(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 3578 ocfs2_drop_osb_locks(struct ocfs2_super *osb) argument 3646 ocfs2_downconvert_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int new_level, int lvb, unsigned int generation) argument 3690 ocfs2_prepare_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 3719 ocfs2_cancel_convert(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 3736 ocfs2_unblock_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, struct ocfs2_unblock_ctl *ctl) argument 4032 ocfs2_dentry_post_unlock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 4191 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); local 4246 struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); local 4280 struct ocfs2_super *osb = lockres->l_priv; local 4300 struct ocfs2_super *osb = lockres->l_priv; local 4306 ocfs2_process_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 4352 ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres) argument 4379 ocfs2_downconvert_thread_do_work(struct ocfs2_super *osb) argument 4414 ocfs2_downconvert_thread_lists_empty(struct ocfs2_super *osb) argument 4427 ocfs2_downconvert_thread_should_wake(struct ocfs2_super *osb) argument 4442 struct ocfs2_super *osb = arg; local 4462 ocfs2_wake_downconvert_thread(struct ocfs2_super *osb) argument [all...] |
H A D | buffer_head_io.h | 15 int ocfs2_write_block(struct ocfs2_super *osb, 18 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, 33 int ocfs2_write_super_or_backup(struct ocfs2_super *osb,
|
H 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, argument 154 if (bg_blkno == osb->first_cluster_group_blkno) 160 return ocfs2_blocks_to_clusters(osb->sb, bg_blkno); 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 166 return osb [all...] |
H A D | dlmglue.h | 73 u32 tf_nodenum; /* osb node number */ 105 int ocfs2_dlm_init(struct ocfs2_super *osb); 106 void ocfs2_dlm_shutdown(struct ocfs2_super *osb, int hangup_pending); 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, 161 int ocfs2_orphan_scan_lock(struct ocfs2_super *osb, u32 *seqno); 162 void ocfs2_orphan_scan_unlock(struct ocfs2_super *osb, u32 seqno); 164 int ocfs2_rename_lock(struct ocfs2_super *osb); 165 void ocfs2_rename_unlock(struct ocfs2_super *osb); [all...] |
H A D | filecheck.h | 61 int ocfs2_filecheck_create_sysfs(struct ocfs2_super *osb); 62 void ocfs2_filecheck_remove_sysfs(struct ocfs2_super *osb);
|
H A D | suballoc.c | 74 static int ocfs2_block_group_alloc(struct ocfs2_super *osb, 113 static int ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb, 318 static void ocfs2_bg_discontig_add_extent(struct ocfs2_super *osb, argument 326 BUG_ON(!ocfs2_supports_discontig_bg(osb)); 328 el->l_count = cpu_to_le16(ocfs2_extent_recs_per_gd(osb->sb)); 349 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); local 372 bg->bg_generation = cpu_to_le32(osb->fs_generation); 374 osb->s_feature_incompat)); 382 ocfs2_bg_discontig_add_extent(osb, bg, cl, group_blkno, 417 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_ argument 461 ocfs2_block_group_claim_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, unsigned int min_bits, u32 *bit_off, u32 *num_bits) argument 489 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); local 585 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); local 651 ocfs2_block_group_alloc(struct ocfs2_super *osb, struct inode *alloc_inode, struct buffer_head *bh, u64 max_block, u64 *last_alloc_group, int flags) argument 762 ocfs2_reserve_suballoc_bits(struct ocfs2_super *osb, struct ocfs2_alloc_context *ac, int type, u32 slot, u64 *last_alloc_group, int flags) argument 854 ocfs2_init_inode_steal_slot(struct ocfs2_super *osb) argument 862 ocfs2_init_meta_steal_slot(struct ocfs2_super *osb) argument 870 ocfs2_init_steal_slots(struct ocfs2_super *osb) argument 876 __ocfs2_set_steal_slot(struct ocfs2_super *osb, int slot, int type) argument 886 __ocfs2_get_steal_slot(struct ocfs2_super *osb, int type) argument 900 ocfs2_get_inode_steal_slot(struct ocfs2_super *osb) argument 905 ocfs2_get_meta_steal_slot(struct ocfs2_super *osb) argument 910 ocfs2_steal_resource(struct ocfs2_super *osb, struct ocfs2_alloc_context *ac, int type) argument 943 ocfs2_steal_inode(struct ocfs2_super *osb, struct ocfs2_alloc_context *ac) argument 949 ocfs2_steal_meta(struct ocfs2_super *osb, struct ocfs2_alloc_context *ac) argument 955 ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb, int blocks, struct ocfs2_alloc_context **ac) argument 1017 ocfs2_reserve_new_metadata(struct ocfs2_super *osb, struct ocfs2_extent_list *root_el, struct ocfs2_alloc_context **ac) argument 1026 ocfs2_reserve_new_inode(struct ocfs2_super *osb, struct ocfs2_alloc_context **ac) argument 1120 ocfs2_reserve_cluster_bitmap_bits(struct ocfs2_super *osb, struct ocfs2_alloc_context *ac) argument 1141 ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb, u32 bits_wanted, u64 max_block, int flags, struct ocfs2_alloc_context **ac) argument 1219 ocfs2_reserve_clusters(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context **ac) argument 1275 ocfs2_block_group_find_clear_bits(struct ocfs2_super *osb, struct buffer_head *bg_bh, unsigned int bits_wanted, unsigned int total_bits, struct ocfs2_suballoc_result *res) argument 1484 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2241 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2256 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2275 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2306 struct ocfs2_super *osb = OCFS2_SB(ac->ac_inode->i_sb); local 2628 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 2695 ocfs2_get_suballoc_slot_bit(struct ocfs2_super *osb, u64 blkno, u16 *suballoc_slot, u64 *group_blkno, u16 *suballoc_bit) argument 2752 ocfs2_test_suballoc_bit(struct ocfs2_super *osb, struct inode *suballoc, struct buffer_head *alloc_bh, u64 group_blkno, u64 blkno, u16 bit, int *res) argument 2810 ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res) argument [all...] |
H A D | reservations.h | 60 int ocfs2_dir_resv_allowed(struct ocfs2_super *osb); 76 * @osb: struct ocfs2_super to be saved in resmap 79 void ocfs2_resmap_init(struct ocfs2_super *osb,
|
H A D | namei.c | 55 static int ocfs2_mknod_locked(struct ocfs2_super *osb, 64 static int ocfs2_prepare_orphan_dir(struct ocfs2_super *osb, 71 static int ocfs2_orphan_add(struct ocfs2_super *osb, 80 static int ocfs2_create_symlink_data(struct ocfs2_super *osb, 85 static int ocfs2_double_lock(struct ocfs2_super *osb, 209 static void ocfs2_cleanup_add_entry_failure(struct ocfs2_super *osb, argument 214 ocfs2_simple_drop_lockres(osb, &dl->dl_lockres); 233 struct ocfs2_super *osb; local 265 osb = OCFS2_SB(dir->i_sb); 274 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { 515 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); local 618 ocfs2_mknod_locked(struct ocfs2_super *osb, struct inode *dir, struct inode *inode, dev_t dev, struct buffer_head **new_fe_bh, struct buffer_head *parent_fe_bh, handle_t *handle, struct ocfs2_alloc_context *inode_ac) argument 691 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); local 880 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); local 1045 ocfs2_check_if_ancestor(struct ocfs2_super *osb, u64 src_inode_no, u64 dest_inode_no) argument 1108 ocfs2_double_lock(struct ocfs2_super *osb, struct buffer_head **bh1, struct inode *inode1, struct buffer_head **bh2, struct inode *inode2, int rename) argument 1214 struct ocfs2_super *osb = NULL; local 1705 ocfs2_create_symlink_data(struct ocfs2_super *osb, handle_t *handle, struct inode *inode, const char *symname) argument 1810 struct ocfs2_super *osb = NULL; local 2108 ocfs2_lookup_lock_orphan_dir(struct ocfs2_super *osb, struct inode **ret_orphan_dir, struct buffer_head **ret_orphan_dir_bh) argument 2150 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); local 2198 ocfs2_prepare_orphan_dir(struct ocfs2_super *osb, struct inode **ret_orphan_dir, u64 blkno, char *name, struct ocfs2_dir_lookup_result *lookup, bool dio) argument 2239 ocfs2_orphan_add(struct ocfs2_super *osb, handle_t *handle, struct inode *inode, struct buffer_head *fe_bh, char *name, struct ocfs2_dir_lookup_result *lookup, struct inode *orphan_dir_inode, bool dio) argument 2341 ocfs2_orphan_del(struct ocfs2_super *osb, handle_t *handle, struct inode *orphan_dir_inode, struct inode *inode, struct buffer_head *orphan_dir_bh, bool dio) argument 2449 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); local 2515 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); local 2627 ocfs2_add_inode_to_orphan(struct ocfs2_super *osb, struct inode *inode) argument 2703 ocfs2_del_inode_from_orphan(struct ocfs2_super *osb, struct inode *inode, struct buffer_head *di_bh, int update_isize, loff_t end) argument 2786 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); local [all...] |
H 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, 167 int ocfs2_complete_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, [all...] |
H A D | move_extents.c | 56 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 124 ocfs2_blocks_to_clusters(osb->sb, 129 ret = ocfs2_truncate_log_append(osb, handle, 153 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 163 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) 166 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, meta_ac); 173 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); 201 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 202 struct inode *tl_inode = osb->osb_tl_inode; 212 ret = ocfs2_lock_refcount_tree(osb, contex 371 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 472 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 569 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 768 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 900 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local [all...] |
H A D | resize.c | 85 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); local 117 if (OCFS2_HAS_COMPAT_FEATURE(osb->sb, 149 le64_add_cpu(&fe->i_size, (u64)new_clusters << osb->s_clustersize_bits); 177 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 186 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); 197 ret = ocfs2_write_super_or_backup(osb, backup); 216 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 222 ret = ocfs2_read_blocks_sync(osb, OCFS2_SUPER_BLOCK_BLKNO, 1, 233 ret = ocfs2_write_super_or_backup(osb, super_bh); 239 if (OCFS2_HAS_COMPAT_FEATURE(osb 266 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 453 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local [all...] |
H A D | locks.c | 101 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 106 if ((osb->s_mount_opt & OCFS2_MOUNT_LOCALFLOCKS) || 107 ocfs2_mount_local(osb)) 119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); local 124 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl);
|