Home
last modified time | relevance | path

Searched refs:OCFS2_SB (Results 1 – 25 of 28) sorted by relevance

12

/fs/ocfs2/
Docfs2.h455 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) macro
466 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_should_order_data()
694 int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_to_blocks()
703 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_blocks_to_clusters()
712 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_for_bytes()
715 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes()
732 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes()
738 int bits = OCFS2_SB(sb)->s_clustersize_bits - sb->s_blocksize_bits; in ocfs2_block_to_cluster_start()
748 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_align_bytes_to_clusters()
773 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_page_index_to_clusters()
[all …]
Dquota_local.c106 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()
523 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_recover_local_quota_file()
564 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_recover_local_quota_file()
747 rec = OCFS2_SB(sb)->quota_rec; in ocfs2_local_read_info()
755 OCFS2_SB(sb)->quota_rec = rec; in ocfs2_local_read_info()
787 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_read_info()
829 ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock); in ocfs2_local_free_info()
[all …]
Dfile.c86 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private()
179 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file()
220 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime()
263 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime()
293 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_update_inode_atime()
324 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update()
350 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos()
359 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()
573 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_extend_allocation()
[all …]
Ddlmglue.c562 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), res, type, ops, inode); in ocfs2_inode_lock_res_init()
569 return OCFS2_SB(inode->i_sb); in ocfs2_get_inode_osb()
576 return OCFS2_SB(info->dqi_gi.dqi_sb); in ocfs2_get_qinfo_osb()
583 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb()
600 return OCFS2_SB(dl->dl_inode->i_sb); in ocfs2_get_dentry_osb()
638 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_dentry_lock_res_init()
695 ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, in ocfs2_file_lock_res_init()
707 ocfs2_lock_res_init_common(OCFS2_SB(info->dqi_gi.dqi_sb), lockres, in ocfs2_qinfo_lock_res_init()
1650 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_new_inode_locks()
1695 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_rw_lock()
[all …]
Dacl.c184 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_acl_set_mode()
214 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_acl_set_mode()
295 osb = OCFS2_SB(inode->i_sb); in ocfs2_iop_get_acl()
312 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod()
346 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl()
Dinode.c133 journal_t *journal = OCFS2_SB(sb)->journal->j_journal; in ocfs2_iget()
273 osb = OCFS2_SB(sb); in ocfs2_populate_inode()
417 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode()
621 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode()
732 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_wipe_inode()
821 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_inode_is_valid_to_delete()
1007 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode()
1071 ocfs2_nfs_sync_unlock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode()
1083 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_clear_inode()
1089 mlog_bug_on_msg(OCFS2_SB(inode->i_sb) == NULL, in ocfs2_clear_inode()
[all …]
Dioctl.c83 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_inode_attr()
167 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize()
186 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots()
205 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label()
224 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid()
243 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_fs_features()
264 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_journal_size()
335 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freeinode()
625 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_freefrag()
Docfs2_fs.h75 ( 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)
Drefcounttree.c121 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()
708 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree()
770 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree()
1589 new_rb->rf_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_new_leaf_refcount_block()
2320 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount()
2363 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2551 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
2561 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), in ocfs2_prepare_refcount_change_for_del()
[all …]
Dxattr.c413 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket()
418 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket()
452 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty()
456 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty()
519 if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_xattr_block()
562 u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; in ocfs2_xattr_name_hash()
600 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init()
640 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init()
1025 if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb))) in ocfs2_listxattr()
1283 if (!ocfs2_supports_xattr(OCFS2_SB(inode->i_sb))) in ocfs2_xattr_get_nolock()
[all …]
Dmove_extents.c65 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent()
178 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_allocators_move_extents()
233 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent()
375 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group()
476 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal()
572 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent()
773 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range()
905 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents()
Dblockcheck.c609 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc()
617 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc()
630 if (ocfs2_meta_ecc(OCFS2_SB(sb))) in ocfs2_compute_meta_ecc_bhs()
639 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc_bhs()
Djournal.h111 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()
208 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_checkpoint_inode()
624 OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_begin_ordered_truncate()
Dlocks.c113 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock()
133 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock()
Dsuballoc.c198 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self()
382 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill()
406 bg->bg_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation); in ocfs2_block_group_fill()
523 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_grow_discontig()
619 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_alloc_discontig()
1491 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_cluster_group_search()
1516 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_cluster_group_search()
1566 ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), in ocfs2_block_group_search()
1662 if (!ocfs2_supports_discontig_bg(OCFS2_SB(ac->ac_inode->i_sb)) || in ocfs2_bg_discontig_fix_result()
2017 atomic_inc(&OCFS2_SB(ac->ac_inode->i_sb)->alloc_stats.bg_allocs); in ocfs2_claim_metadata()
[all …]
Dresize.c94 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); in ocfs2_update_last_group_and_inode()
184 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups()
223 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_super_and_backups()
273 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_extend()
460 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_group_add()
Ddcache.c61 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate()
421 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); in ocfs2_dentry_iput()
450 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move()
Daops.c59 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block()
139 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block()
695 if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) in ocfs2_should_read_blk()
1036 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write()
1097 ocfs2_clear_page_regions(page, OCFS2_SB(inode->i_sb), in ocfs2_prepare_page_for_write()
1214 ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode, in ocfs2_write_cluster()
1302 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc()
1483 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline()
1623 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 …]
Dquota_global.c348 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info()
596 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_dquot_helper()
649 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_write_dquot()
709 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_release_dquot()
783 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_acquire_dquot()
877 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mark_dquot_dirty()
932 handle = ocfs2_start_trans(OCFS2_SB(sb), OCFS2_QINFO_WRITE_CREDITS); in ocfs2_write_info()
939 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_write_info()
Dexport.c54 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()
Dsuper.c406 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_fs()
419 if (jbd2_journal_start_commit(OCFS2_SB(sb)->journal->j_journal, in ocfs2_sync_fs()
422 jbd2_log_wait_commit(OCFS2_SB(sb)->journal->j_journal, in ocfs2_sync_fs()
634 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_remount()
1052 osb = OCFS2_SB(sb); in ocfs2_fill_super()
1525 struct ocfs2_super *osb = OCFS2_SB(root->d_sb); in ocfs2_show_options()
1688 osb = OCFS2_SB(dentry->d_sb); in ocfs2_statfs()
1857 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_mount_volume()
1915 osb = OCFS2_SB(sb); in ocfs2_dismount_volume()
2548 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_handle_error()
[all …]
Dnamei.c139 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup()
265 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod()
503 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_mknod_locked()
676 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_link()
861 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_unlink()
1219 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename()
1774 osb = OCFS2_SB(sb); in ocfs2_symlink()
2075 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir()
2333 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_prep_new_orphaned_file()
2398 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_create_inode_in_orphan()
[all …]
Dinode.h163 int c_to_s_bits = OCFS2_SB(inode->i_sb)->s_clustersize_bits - 9; in ocfs2_inode_sector_count()
Ddir.c90 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer()
108 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer()
273 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_dx_dir_name_hash()
906 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup()
2475 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in __ocfs2_dx_dir_new_cluster()
2649 i = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), &hinfo); in ocfs2_dx_dir_index_block()
2814 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dir()
3085 off = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), in ocfs2_expand_inline_dir()
3145 status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset, in ocfs2_do_extend_dir()
4055 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_expand_inline_dx_root()
[all …]
Dsuballoc.h181 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap()

12