/linux-6.1.9/fs/ocfs2/ |
D | ocfs2.h | 472 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) macro 483 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_should_order_data() 719 int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_to_blocks() 728 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_for_blocks() 738 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_blocks_to_clusters() 747 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_for_bytes() 750 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 760 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_bytes_to_clusters() 777 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes() 783 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() 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 | 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() 253 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() 314 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() 340 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() 349 if ((offset & (OCFS2_SB(inode->i_sb)->s_clustersize - 1)) == 0) in ocfs2_cow_file_pos() 440 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() 564 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_extend_allocation() 712 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() 303 osb = OCFS2_SB(inode->i_sb); in ocfs2_iop_get_acl() 322 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() 358 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 | ioctl.c | 91 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fileattr_set() 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() 184 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() 203 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() 222 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() 241 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features() 262 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_journal_size() 333 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freeinode() 621 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freefrag()
|
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 | 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() 589 OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_begin_ordered_truncate()
|
D | locks.c | 100 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() 118 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock()
|
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 | refcounttree.c | 111 if (le32_to_cpu(rb->rf_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_refcount_block() 247 ocfs2_simple_drop_lockres(OCFS2_SB(tree->rf_sb), &tree->rf_lockres); in ocfs2_free_refcount_tree() 557 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_refcount_tree() 698 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree() 760 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree() 1575 new_rb->rf_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_new_leaf_refcount_block() 2305 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount() 2348 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted() 2531 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del() 2539 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() 163 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_meta_allocator_move_extents() 211 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() 381 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group() 482 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal() 578 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent() 777 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range() 909 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents()
|
D | xattr.c | 403 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 408 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 442 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 446 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 505 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block() 545 u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; in ocfs2_xattr_name_hash() 583 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init() 623 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init() 891 if (OCFS2_SB(sb)->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR) in ocfs2_xattr_list_entry() 1033 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() 415 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); in ocfs2_dentry_iput() 444 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() 576 if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) in ocfs2_should_read_blk() 951 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write() 1012 ocfs2_clear_page_regions(page, OCFS2_SB(inode->i_sb), in ocfs2_prepare_page_for_write() 1137 ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode, in ocfs2_write_cluster() 1228 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() 1477 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline() 1617 BUG_ON(ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))); in ocfs2_expand_nonsparse_inode() 1639 BUG_ON(!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))); in ocfs2_zero_tail() [all …]
|
D | suballoc.c | 175 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 349 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill() 489 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_grow_discontig() 585 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_alloc_discontig() 1484 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_cluster_group_search() 1559 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_block_group_search() 1655 if (!ocfs2_supports_discontig_bg(OCFS2_SB(ac->ac_inode->i_sb)) || in ocfs2_bg_discontig_fix_result() 2011 atomic_inc(&OCFS2_SB(ac->ac_inode->i_sb)->alloc_stats.bg_allocs); in ocfs2_claim_metadata() 2087 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc() 2113 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc() [all …]
|
D | resize.c | 85 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); in ocfs2_update_last_group_and_inode() 177 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() 216 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_super_and_backups() 266 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_extend() 453 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_add()
|
D | quota_global.c | 357 oinfo->dqi_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 | 127 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 264 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod() 514 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_mknod_locked() 690 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_link() 879 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_unlink() 1248 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename() 1826 osb = OCFS2_SB(sb); in ocfs2_symlink() 2133 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir() 2432 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prep_new_orphaned_file() 2498 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_create_inode_in_orphan() [all …]
|
D | inode.h | 145 int c_to_s_bits = OCFS2_SB(inode->i_sb)->s_clustersize_bits - 9; in ocfs2_inode_sector_count()
|
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() 998 osb = OCFS2_SB(sb); in ocfs2_fill_super() 1470 struct ocfs2_super *osb = OCFS2_SB(root->d_sb); in ocfs2_show_options() 1621 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() 2522 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_handle_error() 2598 if (!ocfs2_mount_local(OCFS2_SB(sb))) in __ocfs2_abort() 2599 OCFS2_SB(sb)->s_mount_opt |= OCFS2_MOUNT_ERRORS_PANIC; in __ocfs2_abort()
|
D | suballoc.h | 165 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap()
|
D | dir.c | 71 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() 89 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() 254 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_dx_dir_name_hash() 877 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 2436 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_dx_dir_new_cluster() 2610 i = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), &hinfo); in ocfs2_dx_dir_index_block() 2775 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dir() 3106 status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset, in ocfs2_do_extend_dir() 4008 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dx_root() 4138 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prepare_dx_dir_for_insert() [all …]
|