Home
last modified time | relevance | path

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

/linux-4.1.27/fs/ocfs2/
Dsuper.c118 static void ocfs2_delete_osb(struct ocfs2_super *osb);
124 static int ocfs2_init_global_system_inodes(struct ocfs2_super *osb);
125 static int ocfs2_init_local_system_inodes(struct ocfs2_super *osb);
126 static void ocfs2_release_system_inodes(struct ocfs2_super *osb);
127 static int ocfs2_check_volume(struct ocfs2_super *osb);
142 static int ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend);
143 static int ocfs2_enable_quotas(struct ocfs2_super *osb);
144 static void ocfs2_disable_quotas(struct ocfs2_super *osb);
231 static int ocfs2_osb_dump(struct ocfs2_super *osb, char *buf, int len) in ocfs2_osb_dump() argument
233 struct ocfs2_cluster_connection *cconn = osb->cconn; in ocfs2_osb_dump()
[all …]
Djournal.c64 static int ocfs2_recover_node(struct ocfs2_super *osb,
67 static int ocfs2_commit_cache(struct ocfs2_super *osb);
68 static int __ocfs2_wait_on_mount(struct ocfs2_super *osb, int quota);
69 static int ocfs2_journal_toggle_dirty(struct ocfs2_super *osb,
71 static int ocfs2_trylock_journal(struct ocfs2_super *osb,
73 static int ocfs2_recover_orphans(struct ocfs2_super *osb,
84 static inline int ocfs2_wait_on_mount(struct ocfs2_super *osb) in ocfs2_wait_on_mount() argument
86 return __ocfs2_wait_on_mount(osb, 0); in ocfs2_wait_on_mount()
89 static inline int ocfs2_wait_on_quotas(struct ocfs2_super *osb) in ocfs2_wait_on_quotas() argument
91 return __ocfs2_wait_on_mount(osb, 1); in ocfs2_wait_on_quotas()
[all …]
Dlocalalloc.c53 static int ocfs2_local_alloc_find_clear_bits(struct ocfs2_super *osb,
60 static int ocfs2_sync_local_to_main(struct ocfs2_super *osb,
66 static int ocfs2_local_alloc_reserve_for_window(struct ocfs2_super *osb,
71 static int ocfs2_local_alloc_new_window(struct ocfs2_super *osb,
75 static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
117 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb) in ocfs2_la_default_mb() argument
123 struct super_block *sb = osb->sb; in ocfs2_la_default_mb()
125 gd_mb = ocfs2_clusters_to_megabytes(osb->sb, in ocfs2_la_default_mb()
126 8 * ocfs2_group_bitmap_size(sb, 0, osb->s_feature_incompat)); in ocfs2_la_default_mb()
133 if ((sb->s_blocksize == 512 && osb->s_clustersize <= 8192) in ocfs2_la_default_mb()
[all …]
Dslot_map.c134 int ocfs2_refresh_slot_info(struct ocfs2_super *osb) in ocfs2_refresh_slot_info() argument
137 struct ocfs2_slot_info *si = osb->slot_info; in ocfs2_refresh_slot_info()
155 spin_lock(&osb->osb_lock); in ocfs2_refresh_slot_info()
157 spin_unlock(&osb->osb_lock); in ocfs2_refresh_slot_info()
201 static int ocfs2_update_disk_slot(struct ocfs2_super *osb, in ocfs2_update_disk_slot() argument
208 spin_lock(&osb->osb_lock); in ocfs2_update_disk_slot()
213 spin_unlock(&osb->osb_lock); in ocfs2_update_disk_slot()
215 status = ocfs2_write_block(osb, bh, INODE_CACHE(si->si_inode)); in ocfs2_update_disk_slot()
226 static int ocfs2_slot_map_physical_size(struct ocfs2_super *osb, in ocfs2_slot_map_physical_size() argument
232 if (ocfs2_uses_extended_slot_map(osb)) { in ocfs2_slot_map_physical_size()
[all …]
Dsysfile.c42 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
56 static struct inode **get_local_system_inode(struct ocfs2_super *osb, in get_local_system_inode() argument
67 spin_lock(&osb->osb_lock); in get_local_system_inode()
68 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
69 spin_unlock(&osb->osb_lock); in get_local_system_inode()
74 osb->max_slots, in get_local_system_inode()
86 spin_lock(&osb->osb_lock); in get_local_system_inode()
87 if (osb->local_system_inodes) { in get_local_system_inode()
90 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
92 osb->local_system_inodes = local_system_inodes; in get_local_system_inode()
[all …]
Dheartbeat.c57 void ocfs2_init_node_maps(struct ocfs2_super *osb) in ocfs2_init_node_maps() argument
59 spin_lock_init(&osb->node_map_lock); in ocfs2_init_node_maps()
60 ocfs2_node_map_init(&osb->osb_recovering_orphan_dirs); in ocfs2_init_node_maps()
65 struct ocfs2_super *osb = data; in ocfs2_do_node_down() local
67 BUG_ON(osb->node_num == node_num); in ocfs2_do_node_down()
71 if (!osb->cconn) { in ocfs2_do_node_down()
81 ocfs2_recovery_thread(osb, node_num); in ocfs2_do_node_down()
90 void ocfs2_node_map_set_bit(struct ocfs2_super *osb, in ocfs2_node_map_set_bit() argument
97 spin_lock(&osb->node_map_lock); in ocfs2_node_map_set_bit()
99 spin_unlock(&osb->node_map_lock); in ocfs2_node_map_set_bit()
[all …]
Ddlmglue.c109 static void ocfs2_dentry_post_unlock(struct ocfs2_super *osb,
340 static int ocfs2_lock_create(struct ocfs2_super *osb,
346 static void __ocfs2_cluster_unlock(struct ocfs2_super *osb,
349 static inline void ocfs2_cluster_unlock(struct ocfs2_super *osb, in ocfs2_cluster_unlock() argument
353 __ocfs2_cluster_unlock(osb, lockres, level, _RET_IP_); in ocfs2_cluster_unlock()
360 static void ocfs2_schedule_blocked_lock(struct ocfs2_super *osb,
374 static void ocfs2_downconvert_on_unlock(struct ocfs2_super *osb,
378 static void ocfs2_drop_osb_locks(struct ocfs2_super *osb);
382 static int ocfs2_downconvert_lock(struct ocfs2_super *osb,
387 static int ocfs2_prepare_cancel_convert(struct ocfs2_super *osb,
[all …]
Docfs2.h483 static inline int ocfs2_sparse_alloc(struct ocfs2_super *osb) in ocfs2_sparse_alloc() argument
485 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC) in ocfs2_sparse_alloc()
490 static inline int ocfs2_writes_unwritten_extents(struct ocfs2_super *osb) in ocfs2_writes_unwritten_extents() argument
495 if (!ocfs2_sparse_alloc(osb)) in ocfs2_writes_unwritten_extents()
498 if (osb->s_feature_ro_compat & OCFS2_FEATURE_RO_COMPAT_UNWRITTEN) in ocfs2_writes_unwritten_extents()
503 static inline int ocfs2_supports_append_dio(struct ocfs2_super *osb) in ocfs2_supports_append_dio() argument
505 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_APPEND_DIO) in ocfs2_supports_append_dio()
511 static inline int ocfs2_supports_inline_data(struct ocfs2_super *osb) in ocfs2_supports_inline_data() argument
513 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_INLINE_DATA) in ocfs2_supports_inline_data()
518 static inline int ocfs2_supports_xattr(struct ocfs2_super *osb) in ocfs2_supports_xattr() argument
[all …]
Dlocalalloc.h29 int ocfs2_load_local_alloc(struct ocfs2_super *osb);
31 void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb);
33 void ocfs2_la_set_sizes(struct ocfs2_super *osb, int requested_mb);
34 unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb);
36 int ocfs2_begin_local_alloc_recovery(struct ocfs2_super *osb,
40 int ocfs2_complete_local_alloc_recovery(struct ocfs2_super *osb,
43 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb,
47 int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,
51 int ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb,
58 int ocfs2_free_local_alloc_bits(struct ocfs2_super *osb,
[all …]
Dslot_map.h30 int ocfs2_init_slot_info(struct ocfs2_super *osb);
31 void ocfs2_free_slot_info(struct ocfs2_super *osb);
33 int ocfs2_find_slot(struct ocfs2_super *osb);
34 void ocfs2_put_slot(struct ocfs2_super *osb);
36 int ocfs2_refresh_slot_info(struct ocfs2_super *osb);
38 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
39 int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
42 int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
Djournal.h149 static inline void ocfs2_ci_set_new(struct ocfs2_super *osb, in ocfs2_ci_set_new() argument
153 ci->ci_created_trans = osb->journal->j_trans_id; in ocfs2_ci_set_new()
158 void ocfs2_orphan_scan_init(struct ocfs2_super *osb);
159 void ocfs2_orphan_scan_start(struct ocfs2_super *osb);
160 void ocfs2_orphan_scan_stop(struct ocfs2_super *osb);
161 void ocfs2_orphan_scan_exit(struct ocfs2_super *osb);
164 void ocfs2_wait_for_recovery(struct ocfs2_super *osb);
166 int ocfs2_recovery_init(struct ocfs2_super *osb);
167 void ocfs2_recovery_exit(struct ocfs2_super *osb);
169 int ocfs2_compute_replay_slots(struct ocfs2_super *osb);
[all …]
Ddlmglue.h90 int ocfs2_dlm_init(struct ocfs2_super *osb);
91 void ocfs2_dlm_shutdown(struct ocfs2_super *osb, int hangup_pending);
106 struct ocfs2_super *osb, u64 ref_blkno,
138 int ocfs2_super_lock(struct ocfs2_super *osb,
140 void ocfs2_super_unlock(struct ocfs2_super *osb,
142 int ocfs2_orphan_scan_lock(struct ocfs2_super *osb, u32 *seqno);
143 void ocfs2_orphan_scan_unlock(struct ocfs2_super *osb, u32 seqno);
145 int ocfs2_rename_lock(struct ocfs2_super *osb);
146 void ocfs2_rename_unlock(struct ocfs2_super *osb);
147 int ocfs2_nfs_sync_lock(struct ocfs2_super *osb, int ex);
[all …]
Dsuballoc.c92 static int ocfs2_block_group_alloc(struct ocfs2_super *osb,
131 static int ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb,
351 static void ocfs2_bg_discontig_add_extent(struct ocfs2_super *osb, in ocfs2_bg_discontig_add_extent() argument
359 BUG_ON(!ocfs2_supports_discontig_bg(osb)); in ocfs2_bg_discontig_add_extent()
361 el->l_count = cpu_to_le16(ocfs2_extent_recs_per_gd(osb->sb)); in ocfs2_bg_discontig_add_extent()
382 struct ocfs2_super *osb = OCFS2_SB(alloc_inode->i_sb); in ocfs2_block_group_fill() local
408 osb->s_feature_incompat)); in ocfs2_block_group_fill()
416 ocfs2_bg_discontig_add_extent(osb, bg, cl, group_blkno, in ocfs2_block_group_fill()
451 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() argument
472 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_contig()
[all …]
Dnamei.c69 static int ocfs2_mknod_locked(struct ocfs2_super *osb,
78 static int ocfs2_prepare_orphan_dir(struct ocfs2_super *osb,
85 static int ocfs2_orphan_add(struct ocfs2_super *osb,
94 static int ocfs2_create_symlink_data(struct ocfs2_super *osb,
99 static int ocfs2_double_lock(struct ocfs2_super *osb,
220 static void ocfs2_cleanup_add_entry_failure(struct ocfs2_super *osb, in ocfs2_cleanup_add_entry_failure() argument
225 ocfs2_simple_drop_lockres(osb, &dl->dl_lockres); in ocfs2_cleanup_add_entry_failure()
243 struct ocfs2_super *osb; in ocfs2_mknod() local
269 osb = OCFS2_SB(dir->i_sb); in ocfs2_mknod()
278 if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { in ocfs2_mknod()
[all …]
Dmove_extents.c65 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extent() local
145 ocfs2_blocks_to_clusters(osb->sb, in __ocfs2_move_extent()
150 ret = ocfs2_truncate_log_append(osb, handle, in __ocfs2_move_extent()
178 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_allocators_move_extents() local
180 num_free_extents = ocfs2_num_free_extents(osb, et); in ocfs2_lock_allocators_move_extents()
188 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) in ocfs2_lock_allocators_move_extents()
191 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, meta_ac); in ocfs2_lock_allocators_move_extents()
198 ret = ocfs2_reserve_clusters(osb, clusters_to_move, data_ac); in ocfs2_lock_allocators_move_extents()
205 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_allocators_move_extents()
233 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() local
[all …]
Dresize.c94 struct ocfs2_super *osb = OCFS2_SB(bm_inode->i_sb); in ocfs2_update_last_group_and_inode() local
124 if (OCFS2_HAS_COMPAT_FEATURE(osb->sb, in ocfs2_update_last_group_and_inode()
156 le64_add_cpu(&fe->i_size, (u64)new_clusters << osb->s_clustersize_bits); in ocfs2_update_last_group_and_inode()
184 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in update_backups() local
193 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); in update_backups()
204 ret = ocfs2_write_super_or_backup(osb, backup); in update_backups()
223 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_super_and_backups() local
229 ret = ocfs2_read_blocks_sync(osb, OCFS2_SUPER_BLOCK_BLKNO, 1, in ocfs2_update_super_and_backups()
240 ret = ocfs2_write_super_or_backup(osb, super_bh); in ocfs2_update_super_and_backups()
246 if (OCFS2_HAS_COMPAT_FEATURE(osb->sb, OCFS2_FEATURE_COMPAT_BACKUP_SB)) in ocfs2_update_super_and_backups()
[all …]
Dsuballoc.h65 void ocfs2_init_steal_slots(struct ocfs2_super *osb);
77 int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
80 int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
83 int ocfs2_reserve_new_inode(struct ocfs2_super *osb,
85 int ocfs2_reserve_clusters(struct ocfs2_super *osb,
163 static inline u32 ocfs2_cluster_from_desc(struct ocfs2_super *osb, in ocfs2_cluster_from_desc() argument
170 if (bg_blkno == osb->first_cluster_group_blkno) in ocfs2_cluster_from_desc()
176 return ocfs2_blocks_to_clusters(osb->sb, bg_blkno); in ocfs2_cluster_from_desc()
181 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_is_cluster_bitmap() local
182 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
[all …]
Daops.c64 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block() local
99 buffer_cache_bh = sb_getblk(osb->sb, blkno); in ocfs2_symlink_get_block()
144 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block() local
182 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
194 if (!ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
644 static int ocfs2_is_overwrite(struct ocfs2_super *osb, in ocfs2_is_overwrite() argument
653 v_cpos = ocfs2_bytes_to_clusters(osb->sb, offset); in ocfs2_is_overwrite()
667 static int ocfs2_direct_IO_zero_extend(struct ocfs2_super *osb, in ocfs2_direct_IO_zero_extend() argument
672 u32 v_cpos = ocfs2_bytes_to_clusters(osb->sb, i_size_read(inode)); in ocfs2_direct_IO_zero_extend()
689 sector_t sector = ((u64)p_cpos << (osb->s_clustersize_bits - 9)) + in ocfs2_direct_IO_zero_extend()
[all …]
Dinode.c73 static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
127 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, in ocfs2_iget() argument
131 struct super_block *sb = osb->sb; in ocfs2_iget()
269 struct ocfs2_super *osb; in ocfs2_populate_inode() local
273 osb = OCFS2_SB(sb); in ocfs2_populate_inode()
275 if ((osb->s_mount_opt & OCFS2_MOUNT_LOCALFLOCKS) || in ocfs2_populate_inode()
276 ocfs2_mount_local(osb) || !ocfs2_stack_supports_plocks()) in ocfs2_populate_inode()
288 BUG_ON(le32_to_cpu(fe->i_fs_generation) != osb->fs_generation); in ocfs2_populate_inode()
409 struct ocfs2_super *osb; in ocfs2_read_locked_inode() local
417 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode()
[all …]
Dioctl.c83 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_inode_attr() local
119 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_set_inode_attr()
133 ocfs2_commit_trans(osb, handle); in ocfs2_set_inode_attr()
167 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_clustersize() local
172 oic.ic_clustersize = osb->s_clustersize; in ocfs2_info_handle_clustersize()
186 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_maxslots() local
191 oim.im_max_slots = osb->max_slots; in ocfs2_info_handle_maxslots()
205 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_label() local
210 memcpy(oil.il_label, osb->vol_label, OCFS2_MAX_VOL_LABEL_LEN); in ocfs2_info_handle_label()
224 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_info_handle_uuid() local
[all …]
Dfile.c86 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() local
89 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private()
179 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() local
181 journal_t *journal = osb->journal->j_journal; in ocfs2_sync_file()
192 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_sync_file()
220 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() local
222 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_should_update_atime()
253 if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum)) in ocfs2_should_update_atime()
263 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() local
267 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
[all …]
Dalloc.h147 int ocfs2_num_free_extents(struct ocfs2_super *osb,
175 int ocfs2_truncate_log_init(struct ocfs2_super *osb);
176 void ocfs2_truncate_log_shutdown(struct ocfs2_super *osb);
177 void ocfs2_schedule_truncate_log_flush(struct ocfs2_super *osb,
179 int ocfs2_flush_truncate_log(struct ocfs2_super *osb);
180 int ocfs2_begin_truncate_log_recovery(struct ocfs2_super *osb,
183 int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb,
185 int ocfs2_truncate_log_needs_flush(struct ocfs2_super *osb);
186 int ocfs2_truncate_log_append(struct ocfs2_super *osb,
190 int __ocfs2_flush_truncate_log(struct ocfs2_super *osb);
[all …]
Dheartbeat.h29 void ocfs2_init_node_maps(struct ocfs2_super *osb);
35 void ocfs2_node_map_set_bit(struct ocfs2_super *osb,
38 void ocfs2_node_map_clear_bit(struct ocfs2_super *osb,
41 int ocfs2_node_map_test_bit(struct ocfs2_super *osb,
Ddcache.c55 struct ocfs2_super *osb; in ocfs2_dentry_revalidate() local
61 osb = OCFS2_SB(dentry->d_sb); in ocfs2_dentry_revalidate()
84 BUG_ON(!osb); in ocfs2_dentry_revalidate()
86 if (inode == osb->root_inode || is_bad_inode(inode)) in ocfs2_dentry_revalidate()
369 static void ocfs2_drop_dentry_lock(struct ocfs2_super *osb, in ocfs2_drop_dentry_lock() argument
373 ocfs2_simple_drop_lockres(osb, &dl->dl_lockres); in ocfs2_drop_dentry_lock()
378 void ocfs2_dentry_lock_put(struct ocfs2_super *osb, in ocfs2_dentry_lock_put() argument
391 ocfs2_drop_dentry_lock(osb, dl); in ocfs2_dentry_lock_put()
448 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move() local
460 ocfs2_dentry_lock_put(osb, dentry->d_fsdata); in ocfs2_dentry_move()
Dbuffer_head_io.c53 int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, in ocfs2_write_block() argument
66 if (ocfs2_is_hard_readonly(osb)) { in ocfs2_write_block()
101 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, in ocfs2_read_blocks_sync() argument
115 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
392 int ocfs2_write_super_or_backup(struct ocfs2_super *osb, in ocfs2_write_super_or_backup() argument
399 ocfs2_check_super_or_backup(osb->sb, bh->b_blocknr); in ocfs2_write_super_or_backup()
401 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) { in ocfs2_write_super_or_backup()
415 ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &di->i_check); in ocfs2_write_super_or_backup()
Drefcounttree.c203 ocfs2_find_refcount_tree(struct ocfs2_super *osb, u64 blkno) in ocfs2_find_refcount_tree() argument
205 struct rb_node *n = osb->osb_rf_lock_tree.rb_node; in ocfs2_find_refcount_tree()
223 static void ocfs2_insert_refcount_tree(struct ocfs2_super *osb, in ocfs2_insert_refcount_tree() argument
228 struct rb_node **p = &osb->osb_rf_lock_tree.rb_node; in ocfs2_insert_refcount_tree()
250 rb_insert_color(&new->rf_node, &osb->osb_rf_lock_tree); in ocfs2_insert_refcount_tree()
262 ocfs2_erase_refcount_tree_from_list_no_lock(struct ocfs2_super *osb, in ocfs2_erase_refcount_tree_from_list_no_lock() argument
265 rb_erase(&tree->rf_node, &osb->osb_rf_lock_tree); in ocfs2_erase_refcount_tree_from_list_no_lock()
266 if (osb->osb_ref_tree_lru && osb->osb_ref_tree_lru == tree) in ocfs2_erase_refcount_tree_from_list_no_lock()
267 osb->osb_ref_tree_lru = NULL; in ocfs2_erase_refcount_tree_from_list_no_lock()
270 static void ocfs2_erase_refcount_tree_from_list(struct ocfs2_super *osb, in ocfs2_erase_refcount_tree_from_list() argument
[all …]
Ddir.c90 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() local
95 return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir); in ocfs2_supports_dir_trailer()
108 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() local
110 return ocfs2_meta_ecc(osb) || in ocfs2_new_dir_wants_trailer()
111 ocfs2_supports_indexed_dirs(osb); in ocfs2_new_dir_wants_trailer()
273 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_dx_dir_name_hash() local
297 memcpy(buf, osb->osb_dx_seed, sizeof(buf)); in ocfs2_dx_dir_name_hash()
859 static inline unsigned int __ocfs2_dx_dir_hash_idx(struct ocfs2_super *osb, in __ocfs2_dx_dir_hash_idx() argument
862 return minor_hash & osb->osb_dx_mask; in __ocfs2_dx_dir_hash_idx()
865 static inline unsigned int ocfs2_dx_dir_hash_idx(struct ocfs2_super *osb, in ocfs2_dx_dir_hash_idx() argument
[all …]
Dalloc.c227 struct ocfs2_super *osb = OCFS2_SB(oi->vfs_inode.i_sb); in ocfs2_dinode_insert_check() local
230 mlog_bug_on_msg(!ocfs2_sparse_alloc(osb) && in ocfs2_dinode_insert_check()
234 osb->dev_str, in ocfs2_dinode_insert_check()
959 int ocfs2_num_free_extents(struct ocfs2_super *osb, in ocfs2_num_free_extents() argument
1007 struct ocfs2_super *osb = in ocfs2_create_new_meta_bhs() local
1026 bhs[i] = sb_getblk(osb->sb, first_blkno); in ocfs2_create_new_meta_bhs()
1042 memset(bhs[i]->b_data, 0, osb->sb->s_blocksize); in ocfs2_create_new_meta_bhs()
1047 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_create_new_meta_bhs()
1053 cpu_to_le16(ocfs2_extent_recs_per_eb(osb->sb)); in ocfs2_create_new_meta_bhs()
4748 struct ocfs2_super *osb = in ocfs2_add_clusters_in_btree() local
[all …]
Dlocks.c113 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_flock() local
120 if ((osb->s_mount_opt & OCFS2_MOUNT_LOCALFLOCKS) || in ocfs2_flock()
121 ocfs2_mount_local(osb)) in ocfs2_flock()
133 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock() local
140 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
Dnamei.h33 int ocfs2_orphan_del(struct ocfs2_super *osb,
42 int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
44 int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
Dbuffer_head_io.h34 int ocfs2_write_block(struct ocfs2_super *osb,
37 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block,
52 int ocfs2_write_super_or_backup(struct ocfs2_super *osb,
Dacl.c292 struct ocfs2_super *osb; in ocfs2_iop_get_acl() local
297 osb = OCFS2_SB(inode->i_sb); in ocfs2_iop_get_acl()
298 if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) in ocfs2_iop_get_acl()
314 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_acl_chmod() local
321 if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL)) in ocfs2_acl_chmod()
348 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_init_acl() local
354 if (osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) { in ocfs2_init_acl()
369 if ((osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) && acl) { in ocfs2_init_acl()
Dquota_global.c596 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_sync_dquot_helper() local
608 handle = ocfs2_start_trans(osb, OCFS2_QSYNC_CREDITS); in ocfs2_sync_dquot_helper()
623 ocfs2_commit_trans(osb, handle); in ocfs2_sync_dquot_helper()
649 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_write_dquot() local
655 handle = ocfs2_start_trans(osb, OCFS2_QWRITE_CREDITS); in ocfs2_write_dquot()
664 ocfs2_commit_trans(osb, handle); in ocfs2_write_dquot()
685 struct ocfs2_super *osb = container_of(work, struct ocfs2_super, in ocfs2_drop_dquot_refs() local
690 list = llist_del_all(&osb->dquot_drop_list); in ocfs2_drop_dquot_refs()
709 struct ocfs2_super *osb = OCFS2_SB(dquot->dq_sb); in ocfs2_release_dquot() local
720 if (current == osb->dc_task) { in ocfs2_release_dquot()
[all …]
Dexport.c54 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_get_dentry() local
78 status = ocfs2_nfs_sync_lock(osb, 1); in ocfs2_get_dentry()
84 status = ocfs2_test_inode_bit(osb, blkno, &set); in ocfs2_get_dentry()
105 inode = ocfs2_iget(osb, blkno, 0, 0); in ocfs2_get_dentry()
108 ocfs2_nfs_sync_unlock(osb, 1); in ocfs2_get_dentry()
Dreservations.c47 int ocfs2_dir_resv_allowed(struct ocfs2_super *osb) in ocfs2_dir_resv_allowed() argument
49 return (osb->osb_resv_level && osb->osb_dir_resv_level); in ocfs2_dir_resv_allowed()
55 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_resv_window_bits() local
60 bits = 4 << osb->osb_resv_level; in ocfs2_resv_window_bits()
62 bits = 4 << osb->osb_dir_resv_level; in ocfs2_resv_window_bits()
88 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_dump_resv() local
94 osb->dev_str, resmap->m_bitmap_len); in ocfs2_dump_resv()
214 int ocfs2_resmap_init(struct ocfs2_super *osb, in ocfs2_resmap_init() argument
219 resmap->m_osb = osb; in ocfs2_resmap_init()
Dxattr.c316 static inline u16 ocfs2_xattr_buckets_per_cluster(struct ocfs2_super *osb) in ocfs2_xattr_buckets_per_cluster() argument
318 return (1 << osb->s_clustersize_bits) / OCFS2_XATTR_BUCKET_SIZE; in ocfs2_xattr_buckets_per_cluster()
600 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_security_init() local
611 ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); in ocfs2_calc_security_init()
640 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_calc_xattr_init() local
647 if (osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) { in ocfs2_calc_xattr_init()
677 (S_ISDIR(mode) && ocfs2_supports_inline_data(osb)) || in ocfs2_calc_xattr_init()
700 if (osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL && in ocfs2_calc_xattr_init()
2358 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_value_outside() local
2380 ctxt.handle = ocfs2_start_trans(osb, ref_credits + in ocfs2_remove_value_outside()
[all …]
Drefcounttree.h36 void ocfs2_purge_refcount_trees(struct ocfs2_super *osb);
37 int ocfs2_lock_refcount_tree(struct ocfs2_super *osb, u64 ref_blkno, int rw,
40 void ocfs2_unlock_refcount_tree(struct ocfs2_super *osb,
Dblockcheck.c617 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc() local
619 if (ocfs2_meta_ecc(osb)) in ocfs2_validate_meta_ecc()
621 &osb->osb_ecc_stats); in ocfs2_validate_meta_ecc()
639 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_validate_meta_ecc_bhs() local
641 if (ocfs2_meta_ecc(osb)) in ocfs2_validate_meta_ecc_bhs()
643 &osb->osb_ecc_stats); in ocfs2_validate_meta_ecc_bhs()
Dreservations.h70 int ocfs2_dir_resv_allowed(struct ocfs2_super *osb);
94 int ocfs2_resmap_init(struct ocfs2_super *osb,
Ddir.h97 int ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb,
104 int ocfs2_fill_new_dir(struct ocfs2_super *osb,
Dquota.h88 struct ocfs2_super *osb, int slot_num);
89 int ocfs2_finish_quota_recovery(struct ocfs2_super *osb,
Dquota_local.c386 struct ocfs2_super *osb, in ocfs2_begin_quota_recovery() argument
394 struct super_block *sb = osb->sb; in ocfs2_begin_quota_recovery()
403 "slot %u\n", osb->dev_str, slot_num); in ocfs2_begin_quota_recovery()
415 lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num); in ocfs2_begin_quota_recovery()
583 int ocfs2_finish_quota_recovery(struct ocfs2_super *osb, in ocfs2_finish_quota_recovery() argument
589 struct super_block *sb = osb->sb; in ocfs2_finish_quota_recovery()
599 "slot %u\n", osb->dev_str, slot_num); in ocfs2_finish_quota_recovery()
606 lqinode = ocfs2_get_system_file_inode(osb, ino[type], slot_num); in ocfs2_finish_quota_recovery()
618 "locked.\n", osb->dev_str, slot_num); in ocfs2_finish_quota_recovery()
644 if (slot_num == osb->slot_num) in ocfs2_finish_quota_recovery()
[all …]
Dsysfile.h29 struct inode * ocfs2_get_system_file_inode(struct ocfs2_super *osb,
Dsuper.h31 int ocfs2_publish_get_mount_state(struct ocfs2_super *osb,
Ddcache.h47 void ocfs2_dentry_lock_put(struct ocfs2_super *osb,
Dfile.h44 int ocfs2_add_inode_data(struct ocfs2_super *osb,
Dextent_map.c755 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fiemap() local
781 cpos = map_start >> osb->s_clustersize_bits; in ocfs2_fiemap()
807 len_bytes = (u64)le16_to_cpu(rec.e_leaf_clusters) << osb->s_clustersize_bits; in ocfs2_fiemap()
808 phys_bytes = le64_to_cpu(rec.e_blkno) << osb->sb->s_blocksize_bits; in ocfs2_fiemap()
809 virt_bytes = (u64)le32_to_cpu(rec.e_cpos) << osb->s_clustersize_bits; in ocfs2_fiemap()
Dinode.h143 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 feoff, unsigned flags,