/fs/ocfs2/ |
D | ocfs2.h | 454 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) macro 465 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_should_order_data() 705 int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_to_blocks() 714 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_blocks_to_clusters() 723 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_for_bytes() 726 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 743 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes() 749 int bits = OCFS2_SB(sb)->s_clustersize_bits - sb->s_blocksize_bits; in ocfs2_block_to_cluster_start() 759 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_align_bytes_to_clusters() 784 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_page_index_to_clusters() [all …]
|
D | acl.c | 146 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_acl() 191 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_acl_set_mode() 220 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_acl_set_mode() 300 osb = OCFS2_SB(inode->i_sb); in ocfs2_iop_get_acl() 317 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() 351 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl() 409 struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb); in ocfs2_xattr_list_acl_access() 427 struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb); in ocfs2_xattr_list_acl_default() 441 struct ocfs2_super *osb = OCFS2_SB(dentry->d_sb); in ocfs2_xattr_get_acl() 465 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_xattr_set_acl()
|
D | quota_local.c | 106 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_modify_bh() 117 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh() 125 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh() 206 ginode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_local_check_quota_file() 520 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_recover_local_quota_file() 561 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_recover_local_quota_file() 744 rec = OCFS2_SB(sb)->quota_rec; in ocfs2_local_read_info() 752 OCFS2_SB(sb)->quota_rec = rec; in ocfs2_local_read_info() 784 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_read_info() 826 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_free_info() [all …]
|
D | file.c | 86 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() 180 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() 223 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() 266 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() 295 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_update_inode_atime() 326 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() 351 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() 360 if ((offset & (OCFS2_SB(inode->i_sb)->s_clustersize - 1)) == 0) in ocfs2_cow_file_pos() 450 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() 578 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_extend_allocation() [all …]
|
D | dlmglue.c | 561 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), res, type, ops, inode); in ocfs2_inode_lock_res_init() 568 return OCFS2_SB(inode->i_sb); in ocfs2_get_inode_osb() 575 return OCFS2_SB(info->dqi_gi.dqi_sb); in ocfs2_get_qinfo_osb() 582 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb() 599 return OCFS2_SB(dl->dl_inode->i_sb); in ocfs2_get_dentry_osb() 637 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_dentry_lock_res_init() 694 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_file_lock_res_init() 706 ocfs2_lock_res_init_common(OCFS2_SB(info->dqi_gi.dqi_sb), lockres, in ocfs2_qinfo_lock_res_init() 1599 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_new_inode_locks() 1644 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_rw_lock() [all …]
|
D | ocfs2_fs.h | 75 ( OCFS2_SB(sb)->s_feature_compat & (mask) ) 77 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) ) 79 ( OCFS2_SB(sb)->s_feature_incompat & (mask) ) 81 OCFS2_SB(sb)->s_feature_compat |= (mask) 83 OCFS2_SB(sb)->s_feature_ro_compat |= (mask) 85 OCFS2_SB(sb)->s_feature_incompat |= (mask) 87 OCFS2_SB(sb)->s_feature_compat &= ~(mask) 89 OCFS2_SB(sb)->s_feature_ro_compat &= ~(mask) 91 OCFS2_SB(sb)->s_feature_incompat &= ~(mask)
|
D | ioctl.c | 83 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_inode_attr() 174 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() 199 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() 224 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() 249 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() 274 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features() 301 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_journal_size() 376 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freeinode() 661 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freefrag()
|
D | refcounttree.c | 121 if (le32_to_cpu(rb->rf_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_refcount_block() 256 ocfs2_simple_drop_lockres(OCFS2_SB(tree->rf_sb), &tree->rf_lockres); in ocfs2_free_refcount_tree() 567 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_refcount_tree() 703 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree() 765 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree() 1585 new_rb->rf_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_new_leaf_refcount_block() 2316 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount() 2359 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted() 2548 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del() 2558 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), in ocfs2_prepare_refcount_change_for_del() [all …]
|
D | journal.h | 111 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed() 127 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new() 209 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_checkpoint_inode() 615 OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_begin_ordered_truncate()
|
D | xattr.c | 406 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 411 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 445 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 449 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 512 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block() 555 u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; in ocfs2_xattr_name_hash() 593 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init() 633 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init() 1019 if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb))) in ocfs2_listxattr() 1277 if (!ocfs2_supports_xattr(OCFS2_SB(inode->i_sb))) in ocfs2_xattr_get_nolock() [all …]
|
D | inode.c | 246 osb = OCFS2_SB(sb); in ocfs2_populate_inode() 395 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode() 605 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode() 716 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_wipe_inode() 805 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_inode_is_valid_to_delete() 995 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode() 1059 ocfs2_nfs_sync_unlock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode() 1076 mlog_bug_on_msg(OCFS2_SB(inode->i_sb) == NULL, in ocfs2_clear_inode() 1091 ocfs2_resv_discard(&OCFS2_SB(inode->i_sb)->osb_la_resmap, in ocfs2_clear_inode() 1161 jbd2_journal_release_jbd_inode(OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_clear_inode() [all …]
|
D | aops.c | 59 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block() 137 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block() 608 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_invalidatepage() 615 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_releasepage() 718 if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) in ocfs2_should_read_blk() 1055 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write() 1116 ocfs2_clear_page_regions(page, OCFS2_SB(inode->i_sb), in ocfs2_prepare_page_for_write() 1232 ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode, in ocfs2_write_cluster() 1320 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() 1501 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline() [all …]
|
D | move_extents.c | 65 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent() 176 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_allocators_move_extents() 232 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() 374 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group() 475 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal() 648 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent() 846 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range() 978 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents()
|
D | locks.c | 111 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() 131 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock()
|
D | blockcheck.c | 607 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc() 615 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc() 628 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc_bhs() 637 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc_bhs()
|
D | suballoc.c | 204 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 388 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill() 412 bg->bg_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_block_group_fill() 529 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_grow_discontig() 625 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_alloc_discontig() 1505 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_cluster_group_search() 1530 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_cluster_group_search() 1580 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_block_group_search() 1661 if (!ocfs2_supports_discontig_bg(OCFS2_SB(ac->ac_inode->i_sb)) || in ocfs2_bg_discontig_fix_result() 2010 atomic_inc(&OCFS2_SB(ac->ac_inode->i_sb)->alloc_stats.bg_allocs); in ocfs2_claim_metadata() [all …]
|
D | quota_global.c | 344 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 593 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_dquot_helper() 645 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_write_dquot() 683 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_release_dquot() 737 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_acquire_dquot() 829 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mark_dquot_dirty() 883 handle = ocfs2_start_trans(OCFS2_SB(sb), OCFS2_QINFO_WRITE_CREDITS); in ocfs2_write_info() 890 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_write_info()
|
D | resize.c | 96 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); in ocfs2_update_last_group_and_inode() 190 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() 229 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_super_and_backups() 279 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_extend() 466 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_add()
|
D | dcache.c | 63 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate() 482 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); in ocfs2_dentry_iput() 511 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move()
|
D | super.c | 407 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_fs() 420 if (jbd2_journal_start_commit(OCFS2_SB(sb)->journal->j_journal, in ocfs2_sync_fs() 423 jbd2_log_wait_commit(OCFS2_SB(sb)->journal->j_journal, in ocfs2_sync_fs() 632 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_remount() 1044 osb = OCFS2_SB(sb); in ocfs2_fill_super() 1244 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_kill_sb() 1535 struct ocfs2_super *osb = OCFS2_SB(root->d_sb); in ocfs2_show_options() 1705 osb = OCFS2_SB(dentry->d_sb); in ocfs2_statfs() 1869 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mount_volume() 1927 osb = OCFS2_SB(sb); in ocfs2_dismount_volume() [all …]
|
D | export.c | 54 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_get_dentry() 169 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); in ocfs2_get_parent()
|
D | namei.c | 131 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 241 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod() 474 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_mknod_locked() 644 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_link() 796 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_unlink() 1074 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename() 1614 osb = OCFS2_SB(sb); in ocfs2_symlink() 1910 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir() 2163 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prep_new_orphaned_file() 2228 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_create_inode_in_orphan() [all …]
|
D | inode.h | 160 int c_to_s_bits = OCFS2_SB(inode->i_sb)->s_clustersize_bits - 9; in ocfs2_inode_sector_count()
|
D | dir.c | 91 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() 109 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() 274 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_dx_dir_name_hash() 907 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 2529 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_dx_dir_new_cluster() 2703 i = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), &hinfo); in ocfs2_dx_dir_index_block() 2868 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dir() 3137 off = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), in ocfs2_expand_inline_dir() 3197 status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset, in ocfs2_do_extend_dir() 4105 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dx_root() [all …]
|
D | suballoc.h | 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap()
|