Home
last modified time | relevance | path

Searched refs:OCFS2_I (Results 1 – 25 of 27) sorted by relevance

12

/fs/ocfs2/
Dinode.c79 unsigned int flags = OCFS2_I(inode)->ip_attr; in ocfs2_set_inode_flags()
175 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_iget()
192 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_find_actor()
221 OCFS2_I(inode)->ip_blkno = args->fi_blkno; in ocfs2_init_locked_inode()
229 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode()
232 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode()
264 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_populate_inode()
265 OCFS2_I(inode)->ip_attr = le32_to_cpu(fe->i_attr); in ocfs2_populate_inode()
266 OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); in ocfs2_populate_inode()
288 if (OCFS2_I(inode)->ip_blkno != le64_to_cpu(fe->i_blkno)) in ocfs2_populate_inode()
[all …]
Ddcache.c46 OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen; in ocfs2_dentry_attach_gen()
75 OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen; in ocfs2_dentry_revalidate()
90 spin_lock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate()
92 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { in ocfs2_dentry_revalidate()
93 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate()
95 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate()
98 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate()
106 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_dentry_revalidate()
117 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate()
156 if (OCFS2_I(parent)->ip_blkno != parent_blkno) in ocfs2_match_dentry()
[all …]
Dnamei.c111 (unsigned long long)OCFS2_I(dir)->ip_blkno, 0); in ocfs2_lookup()
137 oi = OCFS2_I(inode); in ocfs2_lookup()
165 OCFS2_I(dir)->ip_blkno); in ocfs2_lookup()
235 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_mknod()
404 OCFS2_I(dir)->ip_blkno); in ocfs2_mknod()
411 OCFS2_I(inode)->ip_blkno, parent_fe_bh, in ocfs2_mknod()
453 OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SKIP_ORPHAN_DIR; in ocfs2_mknod()
485 OCFS2_I(inode)->ip_blkno = fe_blkno; in __ocfs2_mknod_locked()
610 OCFS2_I(dir)->ip_blkno, mode); in ocfs2_mkdir()
626 (unsigned long long)OCFS2_I(dir)->ip_blkno, mode); in ocfs2_create()
[all …]
Dfile.c100 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_open()
103 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_file_open()
115 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { in ocfs2_file_open()
145 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_release()
183 OCFS2_I(inode)->ip_blkno, in ocfs2_sync_file()
456 trace_ocfs2_truncate_file((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file()
463 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file()
482 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file()
485 &OCFS2_I(inode)->ip_la_data_resv); in ocfs2_truncate_file()
497 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_truncate_file()
[all …]
Dinode.h109 static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) in OCFS2_I() function
114 #define INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags & OCFS2_INODE_JOURNAL)
115 #define SET_INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags |= OCFS2_INODE_JOURNAL)
124 return &OCFS2_I(inode)->ip_metadata_cache; in INODE_CACHE()
162 return (blkcnt_t)(OCFS2_I(inode)->ip_clusters << c_to_s_bits); in ocfs2_inode_sector_count()
Daops.c63 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_symlink_get_block()
139 trace_ocfs2_get_block((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block()
142 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_get_block()
194 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_get_block()
195 …mlog(ML_ERROR, "Size %llu, clusters %u\n", (unsigned long long)i_size_read(inode), OCFS2_I(inode)-… in ocfs2_get_block()
203 trace_ocfs2_get_block_end((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block()
224 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_read_inline_data()
234 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_read_inline_data()
258 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_readpage_inline()
277 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_readpage()
[all …]
Dextent_map.c56 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_init()
88 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_lookup()
117 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_trunc()
230 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_insert_rec()
618 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_get_clusters()
723 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_fiemap_inline()
771 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap()
776 if ((OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) || in ocfs2_fiemap()
826 up_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap()
853 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_seek_data_hole_offset()
[all …]
Ddir.c93 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer()
162 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); in ocfs2_init_dir_trailer()
212 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INDEXED_DIR_FL) in ocfs2_dir_indexed()
338 (unsigned long long)OCFS2_I(dir)->ip_blkno, error_msg, in ocfs2_check_dir_entry()
502 OCFS2_I(dir)->ip_blkno) { in ocfs2_check_dir_trailer()
509 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_check_dir_trailer()
711 start = OCFS2_I(dir)->ip_dir_start_lookup; in ocfs2_find_entry_el()
750 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_find_entry_el()
759 OCFS2_I(dir)->ip_dir_start_lookup = block; in ocfs2_find_entry_el()
950 trace_ocfs2_dx_dir_search((unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_dx_dir_search()
[all …]
Dmmap.c56 trace_ocfs2_fault(OCFS2_I(area->vm_file->f_mapping->host)->ip_blkno, in ocfs2_fault()
157 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite()
161 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite()
Ddlmglue.c559 ocfs2_build_lock_name(type, OCFS2_I(inode)->ip_blkno, in ocfs2_inode_lock_res_init()
606 u64 inode_blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_dentry_lock_res_init()
689 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_lock_res_init()
1604 mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_create_new_inode_locks()
1614 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_rw_lockres, 1, 1); in ocfs2_create_new_inode_locks()
1624 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_inode_lockres, 1, 0); in ocfs2_create_new_inode_locks()
1630 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); in ocfs2_create_new_inode_locks()
1649 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_rw_lock()
1655 lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_lock()
1670 struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_unlock()
[all …]
Dresize.c158 spin_lock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode()
159 OCFS2_I(bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_update_last_group_and_inode()
161 spin_unlock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode()
567 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
568 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add()
570 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
Dexport.c153 (unsigned long long)OCFS2_I(dir)->ip_blkno); in ocfs2_get_parent()
204 blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_encode_fh()
220 blkno = OCFS2_I(parent)->ip_blkno; in ocfs2_encode_fh()
Drefcounttree.c415 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_get_refcount_block()
566 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree()
578 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_create_refcount_tree()
702 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree()
764 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree()
932 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree()
2304 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_decrease_refcount()
2356 trace_ocfs2_mark_extent_refcounted(OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_refcounted()
2543 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_prepare_refcount_change_for_del()
3460 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_refcount_cow_hunk()
[all …]
Dsysfile.c168 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; in _ocfs2_get_system_file_inode()
170 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres. in _ocfs2_get_system_file_inode()
Djournal.h143 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_inode_is_new()
608 return jbd2_journal_file_inode(handle, &OCFS2_I(inode)->ip_jinode); in ocfs2_jbd2_file_inode()
616 &OCFS2_I(inode)->ip_jinode, in ocfs2_begin_ordered_truncate()
Dmove_extents.c240 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & in ocfs2_defrag_extent()
663 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & in ocfs2_move_extent()
851 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in __ocfs2_move_extents_range()
890 (unsigned long long)OCFS2_I(inode)->ip_blkno, in __ocfs2_move_extents_range()
1006 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents()
1010 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents()
Djournal.c784 OCFS2_I(inode)->ip_open_count++; in ocfs2_journal_init()
808 OCFS2_I(inode)->ip_clusters); in ocfs2_journal_init()
838 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_init()
959 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_shutdown()
1160 (unsigned long long)OCFS2_I(journal->j_inode)->ip_blkno); in ocfs2_complete_recovery()
1551 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_replay_journal()
1964 trace_ocfs2_orphan_filldir((unsigned long long)OCFS2_I(iter)->ip_blkno); in ocfs2_orphan_filldir()
1967 OCFS2_I(iter)->ip_next_orphan = p->head; in ocfs2_orphan_filldir()
2092 oi = OCFS2_I(inode); in ocfs2_recover_orphans()
Dxattr.c962 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_list()
1017 struct ocfs2_inode_info *oi = OCFS2_I(dentry->d_inode); in ocfs2_listxattr()
1144 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_get()
1269 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_get_nolock()
1314 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get()
1317 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get()
2253 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_XATTR_FL)); in ocfs2_init_dinode_xa_loc()
2541 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_remove()
2555 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL) { in ocfs2_xattr_remove()
2620 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_has_space_inline()
[all …]
Dsuballoc.c417 bg->bg_parent_dinode = cpu_to_le64(OCFS2_I(alloc_inode)->ip_blkno); in ocfs2_block_group_fill()
773 spin_lock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc()
774 OCFS2_I(alloc_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_block_group_alloc()
777 spin_unlock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc()
1522 OCFS2_I(inode)->ip_clusters) { in ocfs2_cluster_group_search()
1523 max_bits = OCFS2_I(inode)->ip_clusters - gd_cluster_off; in ocfs2_cluster_group_search()
1527 OCFS2_I(inode)->ip_clusters, max_bits); in ocfs2_cluster_group_search()
1756 (unsigned long long)OCFS2_I(alloc_inode)->ip_blkno, in ocfs2_search_chain()
2039 if (OCFS2_I(dir)->ip_last_used_group && in ocfs2_init_inode_ac_group()
2040 OCFS2_I(dir)->ip_last_used_slot == ac->ac_alloc_slot) in ocfs2_init_inode_ac_group()
[all …]
Dlocks.c138 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
Dquota_global.c308 down_write(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_lock_global_qf()
310 down_read(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_lock_global_qf()
318 up_write(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_unlock_global_qf()
321 up_read(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_unlock_global_qf()
Dalloc.c5190 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_written()
5197 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_mark_extent_written()
5651 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & in ocfs2_remove_btree_range()
5809 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append()
5829 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, index, in ocfs2_truncate_log_append()
5840 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append()
5907 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_replay_truncate_records()
5952 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in __ocfs2_flush_truncate_log()
6157 if (OCFS2_I(tl_inode)->ip_blkno == le64_to_cpu(tl_copy->i_blkno)) { in ocfs2_complete_truncate_log_recovery()
6787 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_inode_data_inline()
[all …]
Dioctl.c72 ocfs2_get_inode_flags(OCFS2_I(inode)); in ocfs2_get_inode_attr()
73 *flags = OCFS2_I(inode)->ip_attr; in ocfs2_get_inode_attr()
82 struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); in ocfs2_set_inode_attr()
Dsuballoc.h166 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
Dquota_local.c149 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_read_quota_block()
1232 down_write(&OCFS2_I(lqinode)->ip_alloc_sem); in ocfs2_create_local_dquot()
1267 up_write(&OCFS2_I(lqinode)->ip_alloc_sem); in ocfs2_create_local_dquot()

12