/linux-6.12.1/fs/ocfs2/ |
D | ocfs2.h | 499 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) macro 510 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_should_order_data() 745 int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_to_blocks() 754 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_for_blocks() 764 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_blocks_to_clusters() 773 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_for_bytes() 776 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 786 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_bytes_to_clusters() 803 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes() 809 int bits = OCFS2_SB(sb)->s_clustersize_bits - sb->s_blocksize_bits; in ocfs2_block_to_cluster_start() [all …]
|
D | export.c | 38 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_get_dentry() 140 status = ocfs2_nfs_sync_lock(OCFS2_SB(dir->i_sb), 1); in ocfs2_get_parent() 161 status = ocfs2_test_inode_bit(OCFS2_SB(dir->i_sb), blkno, &set); in ocfs2_get_parent() 178 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); in ocfs2_get_parent() 184 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() 517 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_recover_local_quota_file() 560 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_recover_local_quota_file() 742 rec = OCFS2_SB(sb)->quota_rec; in ocfs2_local_read_info() 750 OCFS2_SB(sb)->quota_rec = rec; in ocfs2_local_read_info() 781 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_read_info() 824 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_free_info() [all …]
|
D | file.c | 71 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() 169 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() 210 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() 257 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() 318 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() 344 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() 353 if ((offset & (OCFS2_SB(inode->i_sb)->s_clustersize - 1)) == 0) in ocfs2_cow_file_pos() 444 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() 568 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_extend_allocation() 716 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_start_ordered_transaction() [all …]
|
D | acl.c | 174 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_acl_set_mode() 204 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_acl_set_mode() 304 osb = OCFS2_SB(inode->i_sb); in ocfs2_iop_get_acl() 323 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() 359 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl()
|
D | inode.c | 268 osb = OCFS2_SB(sb); in ocfs2_populate_inode() 413 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode() 643 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode() 754 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_wipe_inode() 843 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_inode_is_valid_to_delete() 1030 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode() 1102 ocfs2_nfs_sync_unlock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode() 1114 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_clear_inode() 1411 OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_inode_block() 1478 OCFS2_SB(sb)->fs_generation) { in ocfs2_filecheck_validate_inode_block() [all …]
|
D | ocfs2_fs.h | 59 ( OCFS2_SB(sb)->s_feature_compat & (mask) ) 61 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) ) 63 ( OCFS2_SB(sb)->s_feature_incompat & (mask) ) 65 OCFS2_SB(sb)->s_feature_compat |= (mask) 67 OCFS2_SB(sb)->s_feature_ro_compat |= (mask) 69 OCFS2_SB(sb)->s_feature_incompat |= (mask) 71 OCFS2_SB(sb)->s_feature_compat &= ~(mask) 73 OCFS2_SB(sb)->s_feature_ro_compat &= ~(mask) 75 OCFS2_SB(sb)->s_feature_incompat &= ~(mask)
|
D | ioctl.c | 91 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fileattr_set() 166 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() 185 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() 204 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() 223 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() 242 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features() 263 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_journal_size() 334 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freeinode() 622 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freefrag()
|
D | journal.h | 95 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed() 111 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new() 193 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_checkpoint_inode() 591 OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_begin_ordered_truncate()
|
D | locks.c | 101 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() 119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock()
|
D | refcounttree.c | 112 if (le32_to_cpu(rb->rf_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_refcount_block() 248 ocfs2_simple_drop_lockres(OCFS2_SB(tree->rf_sb), &tree->rf_lockres); in ocfs2_free_refcount_tree() 558 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_refcount_tree() 699 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree() 761 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree() 1569 new_rb->rf_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_new_leaf_refcount_block() 2299 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount() 2342 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted() 2525 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del() 2533 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), in ocfs2_prepare_refcount_change_for_del() [all …]
|
D | move_extents.c | 56 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent() 153 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_meta_allocator_move_extents() 201 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() 371 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group() 472 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal() 569 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent() 768 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range() 900 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents()
|
D | blockcheck.c | 567 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc() 575 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc() 588 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc_bhs() 597 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc_bhs()
|
D | xattr.c | 399 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 404 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 438 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 442 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 501 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block() 541 u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; in ocfs2_xattr_name_hash() 579 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init() 619 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init() 887 if (OCFS2_SB(sb)->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR) in ocfs2_xattr_list_entry() 1029 if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb))) in ocfs2_listxattr() [all …]
|
D | dlmglue.c | 576 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), res, type, ops, inode); in ocfs2_inode_lock_res_init() 583 return OCFS2_SB(inode->i_sb); in ocfs2_get_inode_osb() 590 return OCFS2_SB(info->dqi_gi.dqi_sb); in ocfs2_get_qinfo_osb() 597 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb() 614 return OCFS2_SB(dl->dl_inode->i_sb); in ocfs2_get_dentry_osb() 652 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_dentry_lock_res_init() 738 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_file_lock_res_init() 750 ocfs2_lock_res_init_common(OCFS2_SB(info->dqi_gi.dqi_sb), lockres, in ocfs2_qinfo_lock_res_init() 1725 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_new_inode_locks() 1767 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_rw_lock() [all …]
|
D | dcache.c | 45 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate() 408 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); in ocfs2_dentry_iput() 437 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move()
|
D | aops.c | 48 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block() 141 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block() 572 if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) in ocfs2_should_read_blk() 948 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write() 1009 ocfs2_clear_page_regions(page, OCFS2_SB(inode->i_sb), in ocfs2_prepare_page_for_write() 1134 ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode, in ocfs2_write_cluster() 1225 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() 1474 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline() 1614 BUG_ON(ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))); in ocfs2_expand_nonsparse_inode() 1636 BUG_ON(!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))); in ocfs2_zero_tail() [all …]
|
D | suballoc.c | 179 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 353 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill() 493 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_grow_discontig() 589 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_alloc_discontig() 1375 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_set_bits() 1538 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_cluster_group_search() 1611 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_block_group_search() 1707 if (!ocfs2_supports_discontig_bg(OCFS2_SB(ac->ac_inode->i_sb)) || in ocfs2_bg_discontig_fix_result() 2066 atomic_inc(&OCFS2_SB(ac->ac_inode->i_sb)->alloc_stats.bg_allocs); in ocfs2_claim_metadata() 2142 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc() [all …]
|
D | quota_global.c | 357 oinfo->dqi_gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 608 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_dquot_helper() 672 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_write_dquot() 735 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_release_dquot() 809 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_acquire_dquot() 934 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mark_dquot_dirty() 992 handle = ocfs2_start_trans(OCFS2_SB(sb), OCFS2_QINFO_WRITE_CREDITS); in ocfs2_write_info() 999 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_write_info()
|
D | resize.c | 85 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); in ocfs2_update_last_group_and_inode() 185 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() 224 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_super_and_backups() 274 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_extend() 461 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_add()
|
D | journal.c | 641 OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in __ocfs2_journal_access() 713 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_di() 723 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_eb() 733 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_rb() 743 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_gd() 753 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_db() 763 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_xb() 773 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_dq() 783 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_dr() 793 struct ocfs2_super *osb = OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in ocfs2_journal_access_dl() [all …]
|
D | namei.c | 127 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 265 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod() 515 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_mknod_locked() 691 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_link() 881 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_unlink() 1251 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename() 1845 osb = OCFS2_SB(sb); in ocfs2_symlink() 2152 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir() 2453 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prep_new_orphaned_file() 2519 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_create_inode_in_orphan() [all …]
|
D | super.c | 396 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_fs() 608 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_remount() 1000 osb = OCFS2_SB(sb); in ocfs2_fill_super() 1474 struct ocfs2_super *osb = OCFS2_SB(root->d_sb); in ocfs2_show_options() 1622 osb = OCFS2_SB(dentry->d_sb); in ocfs2_statfs() 1781 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mount_volume() 1858 osb = OCFS2_SB(sb); in ocfs2_dismount_volume() 2527 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_handle_error() 2603 if (!ocfs2_mount_local(OCFS2_SB(sb))) in __ocfs2_abort() 2604 OCFS2_SB(sb)->s_mount_opt |= OCFS2_MOUNT_ERRORS_PANIC; in __ocfs2_abort()
|
D | inode.h | 145 int c_to_s_bits = OCFS2_SB(inode->i_sb)->s_clustersize_bits - 9; in ocfs2_inode_sector_count()
|
D | suballoc.h | 169 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap()
|