Home
last modified time | relevance | path

Searched refs:osb (Results 1 – 25 of 29) sorted by relevance

12

/linux/fs/ocfs2/
H A Dlocalalloc.c37 static int ocfs2_local_alloc_find_clear_bits(struct ocfs2_super *osb,
44 static int ocfs2_sync_local_to_main(struct ocfs2_super *osb,
50 static int ocfs2_local_alloc_reserve_for_window(struct ocfs2_super *osb,
55 static int ocfs2_local_alloc_new_window(struct ocfs2_super *osb,
59 static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
101 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb) in ocfs2_la_default_mb() argument
107 struct super_block *sb = osb->sb; in ocfs2_la_default_mb()
109 gd_mb = ocfs2_clusters_to_megabytes(osb->sb, in ocfs2_la_default_mb()
110 8 * ocfs2_group_bitmap_size(sb, 0, osb->s_feature_incompat)); in ocfs2_la_default_mb()
117 if ((sb->s_blocksize == 512 && osb->s_clustersize <= 8192) in ocfs2_la_default_mb()
[all …]
H A Dslot_map.c119 int ocfs2_refresh_slot_info(struct ocfs2_super *osb) in ocfs2_refresh_slot_info() argument
122 struct ocfs2_slot_info *si = osb->slot_info; in ocfs2_refresh_slot_info()
141 spin_lock(&osb->osb_lock); in ocfs2_refresh_slot_info()
143 spin_unlock(&osb->osb_lock); in ocfs2_refresh_slot_info()
187 static int ocfs2_update_disk_slot(struct ocfs2_super *osb, in ocfs2_update_disk_slot() argument
194 spin_lock(&osb->osb_lock); in ocfs2_update_disk_slot()
199 spin_unlock(&osb->osb_lock); in ocfs2_update_disk_slot()
201 status = ocfs2_write_block(osb, bh, INODE_CACHE(si->si_inode)); in ocfs2_update_disk_slot()
212 static int ocfs2_slot_map_physical_size(struct ocfs2_super *osb, in ocfs2_slot_map_physical_size() argument
218 if (ocfs2_uses_extended_slot_map(osb)) { in ocfs2_slot_map_physical_size()
[all …]
H A Docfs2.h530 static inline int ocfs2_sparse_alloc(struct ocfs2_super *osb) in ocfs2_sparse_alloc() argument
532 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC) in ocfs2_sparse_alloc()
537 static inline int ocfs2_writes_unwritten_extents(struct ocfs2_super *osb) in ocfs2_writes_unwritten_extents() argument
542 if (!ocfs2_sparse_alloc(osb)) in ocfs2_writes_unwritten_extents()
545 if (osb->s_feature_ro_compat & OCFS2_FEATURE_RO_COMPAT_UNWRITTEN) in ocfs2_writes_unwritten_extents()
550 static inline int ocfs2_supports_append_dio(struct ocfs2_super *osb) in ocfs2_supports_append_dio() argument
552 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_APPEND_DIO) in ocfs2_supports_append_dio()
558 static inline int ocfs2_supports_inline_data(struct ocfs2_super *osb) in ocfs2_supports_inline_data() argument
560 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_INLINE_DATA) in ocfs2_supports_inline_data()
565 static inline int ocfs2_supports_xattr(struct ocfs2_super *osb) in ocfs2_supports_xattr() argument
[all …]
H A Dsysfile.c26 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
40 static struct inode **get_local_system_inode(struct ocfs2_super *osb, in get_local_system_inode() argument
51 spin_lock(&osb->osb_lock); in get_local_system_inode()
52 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
53 spin_unlock(&osb->osb_lock); in get_local_system_inode()
59 osb->max_slots), in get_local_system_inode()
71 spin_lock(&osb->osb_lock); in get_local_system_inode()
72 if (osb->local_system_inodes) { in get_local_system_inode()
75 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
77 osb->local_system_inodes = local_system_inodes; in get_local_system_inode()
[all …]
H A Dheartbeat.c36 void ocfs2_init_node_maps(struct ocfs2_super *osb) in ocfs2_init_node_maps() argument
38 spin_lock_init(&osb->node_map_lock); in ocfs2_init_node_maps()
39 ocfs2_node_map_init(&osb->osb_recovering_orphan_dirs); in ocfs2_init_node_maps()
44 struct ocfs2_super *osb = data; in ocfs2_do_node_down() local
46 BUG_ON(osb->node_num == node_num); in ocfs2_do_node_down()
50 if (!osb->cconn) { in ocfs2_do_node_down()
60 ocfs2_recovery_thread(osb, node_num); in ocfs2_do_node_down()
63 void ocfs2_node_map_set_bit(struct ocfs2_super *osb, in ocfs2_node_map_set_bit() argument
70 spin_lock(&osb->node_map_lock); in ocfs2_node_map_set_bit()
72 spin_unlock(&osb->node_map_lock); in ocfs2_node_map_set_bit()
[all …]
H A Djournal.h133 static inline void ocfs2_ci_set_new(struct ocfs2_super *osb, in ocfs2_ci_set_new() argument
137 ci->ci_created_trans = osb->journal->j_trans_id; in ocfs2_ci_set_new()
142 void ocfs2_orphan_scan_init(struct ocfs2_super *osb);
143 void ocfs2_orphan_scan_start(struct ocfs2_super *osb);
144 void ocfs2_orphan_scan_stop(struct ocfs2_super *osb);
147 void ocfs2_wait_for_recovery(struct ocfs2_super *osb);
149 int ocfs2_recovery_init(struct ocfs2_super *osb);
150 void ocfs2_recovery_exit(struct ocfs2_super *osb);
151 void ocfs2_recovery_disable_quota(struct ocfs2_super *osb);
153 int ocfs2_compute_replay_slots(struct ocfs2_super *osb);
[all …]
H A Dlocalalloc.h13 int ocfs2_load_local_alloc(struct ocfs2_super *osb);
15 void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb);
17 void ocfs2_la_set_sizes(struct ocfs2_super *osb, int requested_mb);
18 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb);
20 int ocfs2_begin_local_alloc_recovery(struct ocfs2_super *osb,
24 int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb,
27 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb,
31 int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,
35 int ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb,
42 int ocfs2_free_local_alloc_bits(struct ocfs2_super *osb,
[all …]
H A Dslot_map.h14 int ocfs2_init_slot_info(struct ocfs2_super *osb);
15 void ocfs2_free_slot_info(struct ocfs2_super *osb);
17 int ocfs2_find_slot(struct ocfs2_super *osb);
18 void ocfs2_put_slot(struct ocfs2_super *osb);
20 int ocfs2_refresh_slot_info(struct ocfs2_super *osb);
22 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
23 int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
26 int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
H A Dmove_extents.c56 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent() local
130 ocfs2_blocks_to_clusters(osb->sb, in __ocfs2_move_extent()
135 ret = ocfs2_truncate_log_append(osb, handle, in __ocfs2_move_extent()
159 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_meta_allocator_move_extents() local
169 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) in ocfs2_lock_meta_allocator_move_extents()
172 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, meta_ac); in ocfs2_lock_meta_allocator_move_extents()
179 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
207 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() local
208 struct inode *tl_inode = osb->osb_tl_inode; in ocfs2_defrag_extent()
218 ret = ocfs2_lock_refcount_tree(osb, context->refcount_loc, 1, in ocfs2_defrag_extent()
[all …]
H A Dsuballoc.h50 void ocfs2_init_steal_slots(struct ocfs2_super *osb);
62 int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
65 int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
68 int ocfs2_reserve_new_inode(struct ocfs2_super *osb,
70 int ocfs2_reserve_clusters(struct ocfs2_super *osb,
152 static inline u32 ocfs2_cluster_from_desc(struct ocfs2_super *osb, in ocfs2_cluster_from_desc() argument
159 if (bg_blkno == osb->first_cluster_group_blkno) in ocfs2_cluster_from_desc()
165 return ocfs2_blocks_to_clusters(osb->sb, bg_blkno); in ocfs2_cluster_from_desc()
170 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap() local
171 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
[all …]
H A Dinode.c57 static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
119 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, in ocfs2_iget() argument
124 struct super_block *sb = osb->sb; in ocfs2_iget()
126 journal_t *journal = osb->journal->j_journal; in ocfs2_iget()
342 struct ocfs2_super *osb; in ocfs2_populate_inode() local
346 osb = OCFS2_SB(sb); in ocfs2_populate_inode()
348 if ((osb->s_mount_opt & OCFS2_MOUNT_LOCALFLOCKS) || in ocfs2_populate_inode()
349 ocfs2_mount_local(osb) || !ocfs2_stack_supports_plocks()) in ocfs2_populate_inode()
361 BUG_ON(le32_to_cpu(fe->i_fs_generation) != osb->fs_generation); in ocfs2_populate_inode()
483 struct ocfs2_super *osb; in ocfs2_read_locked_inode() local
[all …]
H A Dfile.c72 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() local
75 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private()
170 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() local
172 journal_t *journal = osb->journal->j_journal; in ocfs2_sync_file()
183 if (unlikely(ocfs2_emergency_state(osb))) in ocfs2_sync_file()
211 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() local
213 if (unlikely(ocfs2_emergency_state(osb))) in ocfs2_should_update_atime()
248 if ((now.tv_sec - inode_get_atime_sec(inode) <= osb->s_atime_quantum)) in ocfs2_should_update_atime()
258 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() local
262 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
[all …]
H A Dfilecheck.c166 int ocfs2_filecheck_create_sysfs(struct ocfs2_super *osb) in ocfs2_filecheck_create_sysfs() argument
170 struct ocfs2_filecheck_sysfs_entry *entry = &osb->osb_fc_ent; in ocfs2_filecheck_create_sysfs()
182 entry->fs_kobj.kset = osb->osb_dev_kset; in ocfs2_filecheck_create_sysfs()
196 void ocfs2_filecheck_remove_sysfs(struct ocfs2_super *osb) in ocfs2_filecheck_remove_sysfs() argument
198 if (!osb->osb_fc_ent.fs_fcheck) in ocfs2_filecheck_remove_sysfs()
201 kobject_del(&osb->osb_fc_ent.fs_kobj); in ocfs2_filecheck_remove_sysfs()
202 kobject_put(&osb->osb_fc_ent.fs_kobj); in ocfs2_filecheck_remove_sysfs()
203 wait_for_completion(&osb->osb_fc_ent.fs_kobj_unregister); in ocfs2_filecheck_remove_sysfs()
204 ocfs2_filecheck_sysfs_free(&osb->osb_fc_ent); in ocfs2_filecheck_remove_sysfs()
406 ocfs2_filecheck_handle(struct ocfs2_super *osb, in ocfs2_filecheck_handle() argument
[all …]
H A Dheartbeat.h13 void ocfs2_init_node_maps(struct ocfs2_super *osb);
19 void ocfs2_node_map_set_bit(struct ocfs2_super *osb,
22 void ocfs2_node_map_clear_bit(struct ocfs2_super *osb,
25 int ocfs2_node_map_test_bit(struct ocfs2_super *osb,
H A Dlocks.c101 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() local
106 if ((osb->s_mount_opt & OCFS2_MOUNT_LOCALFLOCKS) || in ocfs2_flock()
107 ocfs2_mount_local(osb)) in ocfs2_flock()
119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock() local
124 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
H A Dbuffer_head_io.c38 int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, in ocfs2_write_block() argument
51 if (ocfs2_is_hard_readonly(osb)) { in ocfs2_write_block()
89 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, in ocfs2_read_blocks_sync() argument
109 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
428 int ocfs2_write_super_or_backup(struct ocfs2_super *osb, in ocfs2_write_super_or_backup() argument
435 ocfs2_check_super_or_backup(osb->sb, bh->b_blocknr); in ocfs2_write_super_or_backup()
437 if (unlikely(ocfs2_emergency_state(osb))) { in ocfs2_write_super_or_backup()
451 ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &di->i_check); in ocfs2_write_super_or_backup()
H A Dnamei.h20 int ocfs2_orphan_del(struct ocfs2_super *osb,
29 int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
31 int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
H A Dbuffer_head_io.h15 int ocfs2_write_block(struct ocfs2_super *osb,
18 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block,
33 int ocfs2_write_super_or_backup(struct ocfs2_super *osb,
H A Dacl.c296 struct ocfs2_super *osb; in ocfs2_iop_get_acl() local
305 osb = OCFS2_SB(inode->i_sb); in ocfs2_iop_get_acl()
306 if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) in ocfs2_iop_get_acl()
324 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() local
331 if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) in ocfs2_acl_chmod()
360 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl() local
366 if (osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) { in ocfs2_init_acl()
383 if ((osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) && acl) { in ocfs2_init_acl()
H A Dblockcheck.c575 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc() local
577 if (ocfs2_meta_ecc(osb)) in ocfs2_validate_meta_ecc()
579 &osb->osb_ecc_stats); in ocfs2_validate_meta_ecc()
597 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc_bhs() local
599 if (ocfs2_meta_ecc(osb)) in ocfs2_validate_meta_ecc_bhs()
601 &osb->osb_ecc_stats); in ocfs2_validate_meta_ecc_bhs()
H A Dfilecheck.h61 int ocfs2_filecheck_create_sysfs(struct ocfs2_super *osb);
62 void ocfs2_filecheck_remove_sysfs(struct ocfs2_super *osb);
H A Drefcounttree.h26 void ocfs2_purge_refcount_trees(struct ocfs2_super *osb);
27 int ocfs2_lock_refcount_tree(struct ocfs2_super *osb, u64 ref_blkno, int rw,
30 void ocfs2_unlock_refcount_tree(struct ocfs2_super *osb,
H A Ddir.h81 int ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb,
88 int ocfs2_fill_new_dir(struct ocfs2_super *osb,
H A Dquota.h89 struct ocfs2_super *osb, int slot_num);
90 int ocfs2_finish_quota_recovery(struct ocfs2_super *osb,
/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c357 struct oabi_sembuf osb; in sys_oabi_semtimedop() local
358 err |= copy_from_user(&osb, tsops, sizeof(osb)); in sys_oabi_semtimedop()
359 sops[i].sem_num = osb.sem_num; in sys_oabi_semtimedop()
360 sops[i].sem_op = osb.sem_op; in sys_oabi_semtimedop()
361 sops[i].sem_flg = osb.sem_flg; in sys_oabi_semtimedop()

12