/kernel/linux/linux-5.10/fs/ocfs2/ |
D | ocfs2.h | 474 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) macro 485 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_should_order_data() 721 int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_to_blocks() 730 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_for_blocks() 740 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_blocks_to_clusters() 749 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_for_bytes() 752 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 762 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_bytes_to_clusters() 779 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes() 785 int bits = OCFS2_SB(sb)->s_clustersize_bits - sb->s_blocksize_bits; in ocfs2_block_to_cluster_start() [all …]
|
D | export.c | 40 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_get_dentry() 142 status = ocfs2_nfs_sync_lock(OCFS2_SB(dir->i_sb), 1); in ocfs2_get_parent() 163 status = ocfs2_test_inode_bit(OCFS2_SB(dir->i_sb), blkno, &set); in ocfs2_get_parent() 180 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); in ocfs2_get_parent() 186 ocfs2_nfs_sync_unlock(OCFS2_SB(dir->i_sb), 1); in ocfs2_get_parent()
|
D | quota_local.c | 101 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_modify_bh() 112 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh() 120 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh() 199 ginode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_local_check_quota_file() 516 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_recover_local_quota_file() 557 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_recover_local_quota_file() 737 rec = OCFS2_SB(sb)->quota_rec; in ocfs2_local_read_info() 745 OCFS2_SB(sb)->quota_rec = rec; in ocfs2_local_read_info() 776 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_read_info() 817 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_free_info() [all …]
|
D | file.c | 73 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() 171 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() 212 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() 255 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() 316 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() 342 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() 351 if ((offset & (OCFS2_SB(inode->i_sb)->s_clustersize - 1)) == 0) in ocfs2_cow_file_pos() 442 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() 569 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_extend_allocation() 717 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_start_ordered_transaction() [all …]
|
D | acl.c | 176 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_acl_set_mode() 206 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() 319 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() 355 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl()
|
D | inode.c | 130 journal_t *journal = OCFS2_SB(sb)->journal->j_journal; in ocfs2_iget() 270 osb = OCFS2_SB(sb); in ocfs2_populate_inode() 415 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode() 645 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode() 756 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_wipe_inode() 845 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_inode_is_valid_to_delete() 1032 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode() 1104 ocfs2_nfs_sync_unlock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode() 1116 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_clear_inode() 1413 OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_inode_block() [all …]
|
D | ocfs2_fs.h | 61 ( OCFS2_SB(sb)->s_feature_compat & (mask) ) 63 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) ) 65 ( OCFS2_SB(sb)->s_feature_incompat & (mask) ) 67 OCFS2_SB(sb)->s_feature_compat |= (mask) 69 OCFS2_SB(sb)->s_feature_ro_compat |= (mask) 71 OCFS2_SB(sb)->s_feature_incompat |= (mask) 73 OCFS2_SB(sb)->s_feature_compat &= ~(mask) 75 OCFS2_SB(sb)->s_feature_ro_compat &= ~(mask) 77 OCFS2_SB(sb)->s_feature_incompat &= ~(mask)
|
D | ioctl.c | 84 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_inode_attr() 161 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() 180 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() 199 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() 218 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() 237 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features() 258 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_journal_size() 329 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freeinode() 617 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freefrag()
|
D | journal.h | 97 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed() 113 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new() 194 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_checkpoint_inode() 590 OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_begin_ordered_truncate()
|
D | locks.c | 102 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() 122 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock()
|
D | blockcheck.c | 569 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc() 577 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc() 590 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc_bhs() 599 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc_bhs()
|
D | move_extents.c | 58 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent() 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_meta_allocator_move_extents() 213 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() 383 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group() 484 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal() 580 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent() 779 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range() 911 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents()
|
D | refcounttree.c | 113 if (le32_to_cpu(rb->rf_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_refcount_block() 249 ocfs2_simple_drop_lockres(OCFS2_SB(tree->rf_sb), &tree->rf_lockres); in ocfs2_free_refcount_tree() 559 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_refcount_tree() 700 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree() 762 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree() 1577 new_rb->rf_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_new_leaf_refcount_block() 2307 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount() 2350 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted() 2533 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del() 2541 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), in ocfs2_prepare_refcount_change_for_del() [all …]
|
D | xattr.c | 405 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 410 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 444 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 448 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 507 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block() 547 u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; in ocfs2_xattr_name_hash() 585 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init() 625 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init() 893 if (OCFS2_SB(sb)->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR) in ocfs2_xattr_list_entry() 1035 if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb))) in ocfs2_listxattr() [all …]
|
D | dlmglue.c | 577 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), res, type, ops, inode); in ocfs2_inode_lock_res_init() 584 return OCFS2_SB(inode->i_sb); in ocfs2_get_inode_osb() 591 return OCFS2_SB(info->dqi_gi.dqi_sb); in ocfs2_get_qinfo_osb() 598 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb() 615 return OCFS2_SB(dl->dl_inode->i_sb); in ocfs2_get_dentry_osb() 653 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_dentry_lock_res_init() 739 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_file_lock_res_init() 751 ocfs2_lock_res_init_common(OCFS2_SB(info->dqi_gi.dqi_sb), lockres, in ocfs2_qinfo_lock_res_init() 1726 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_new_inode_locks() 1768 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_rw_lock() [all …]
|
D | dcache.c | 47 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate() 417 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); in ocfs2_dentry_iput() 446 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move()
|
D | aops.c | 50 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block() 143 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block() 579 if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) in ocfs2_should_read_blk() 955 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write() 1016 ocfs2_clear_page_regions(page, OCFS2_SB(inode->i_sb), in ocfs2_prepare_page_for_write() 1141 ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode, in ocfs2_write_cluster() 1232 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() 1481 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline() 1621 BUG_ON(ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))); in ocfs2_expand_nonsparse_inode() 1643 BUG_ON(!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))); in ocfs2_zero_tail() [all …]
|
D | suballoc.c | 177 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 351 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill() 491 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_grow_discontig() 587 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_alloc_discontig() 1486 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_cluster_group_search() 1561 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_block_group_search() 1657 if (!ocfs2_supports_discontig_bg(OCFS2_SB(ac->ac_inode->i_sb)) || in ocfs2_bg_discontig_fix_result() 2013 atomic_inc(&OCFS2_SB(ac->ac_inode->i_sb)->alloc_stats.bg_allocs); in ocfs2_claim_metadata() 2089 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc() 2115 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc() [all …]
|
D | resize.c | 87 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); in ocfs2_update_last_group_and_inode() 179 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() 218 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_super_and_backups() 268 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_extend() 455 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_add()
|
D | quota_global.c | 350 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 602 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_dquot_helper() 663 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_write_dquot() 723 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_release_dquot() 797 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_acquire_dquot() 922 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mark_dquot_dirty() 977 handle = ocfs2_start_trans(OCFS2_SB(sb), OCFS2_QINFO_WRITE_CREDITS); in ocfs2_write_info() 984 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_write_info()
|
D | namei.c | 128 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 263 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod() 513 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_mknod_locked() 687 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_link() 876 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_unlink() 1244 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename() 1821 osb = OCFS2_SB(sb); in ocfs2_symlink() 2128 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir() 2427 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prep_new_orphaned_file() 2493 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_create_inode_in_orphan() [all …]
|
D | inode.h | 147 int c_to_s_bits = OCFS2_SB(inode->i_sb)->s_clustersize_bits - 9; in ocfs2_inode_sector_count()
|
D | super.c | 399 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_fs() 611 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_remount() 1003 osb = OCFS2_SB(sb); in ocfs2_fill_super() 1475 struct ocfs2_super *osb = OCFS2_SB(root->d_sb); in ocfs2_show_options() 1626 osb = OCFS2_SB(dentry->d_sb); in ocfs2_statfs() 1788 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mount_volume() 1865 osb = OCFS2_SB(sb); in ocfs2_dismount_volume() 2531 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_handle_error() 2607 if (!ocfs2_mount_local(OCFS2_SB(sb))) in __ocfs2_abort() 2608 OCFS2_SB(sb)->s_mount_opt |= OCFS2_MOUNT_ERRORS_PANIC; in __ocfs2_abort()
|
D | suballoc.h | 167 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap()
|
D | dir.c | 73 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() 91 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() 256 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_dx_dir_name_hash() 879 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 2438 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_dx_dir_new_cluster() 2612 i = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), &hinfo); in ocfs2_dx_dir_index_block() 2777 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dir() 3108 status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset, in ocfs2_do_extend_dir() 4010 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dx_root() 4140 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prepare_dx_dir_for_insert() [all …]
|