Home
last modified time | relevance | path

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

12

/Linux-v5.4/fs/ocfs2/
Dinode.c75 unsigned int flags = OCFS2_I(inode)->ip_attr; in ocfs2_set_inode_flags()
180 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_iget()
199 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_iget()
216 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_find_actor()
245 OCFS2_I(inode)->ip_blkno = args->fi_blkno; in ocfs2_init_locked_inode()
253 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode()
256 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode()
288 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_populate_inode()
289 OCFS2_I(inode)->ip_attr = le32_to_cpu(fe->i_attr); in ocfs2_populate_inode()
290 OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); in ocfs2_populate_inode()
[all …]
Ddcache.c31 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen()
60 pgen = OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_revalidate()
75 spin_lock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate()
77 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { in ocfs2_dentry_revalidate()
78 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate()
80 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate()
83 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate()
91 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_dentry_revalidate()
102 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate()
141 if (OCFS2_I(parent)->ip_blkno != parent_blkno) in ocfs2_match_dentry()
[all …]
Dinode.h104 static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) in OCFS2_I() function
109 #define INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags & OCFS2_INODE_JOURNAL)
110 #define SET_INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags |= OCFS2_INODE_JOURNAL)
117 return &OCFS2_I(inode)->ip_metadata_cache; in INODE_CACHE()
149 return (blkcnt_t)OCFS2_I(inode)->ip_clusters << c_to_s_bits; in ocfs2_inode_sector_count()
173 return (OCFS2_I(inode)->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_is_refcount_inode()
Dfile.c87 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_open()
137 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_release()
172 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_sync_file()
448 trace_ocfs2_truncate_file((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file()
455 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file()
469 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file()
472 &OCFS2_I(inode)->ip_la_data_resv); in ocfs2_truncate_file()
484 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_truncate_file()
511 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file()
514 if (!status && OCFS2_I(inode)->ip_clusters == 0) in ocfs2_truncate_file()
[all …]
Dnamei.c108 (unsigned long long)OCFS2_I(dir)->ip_blkno, 0); in ocfs2_lookup()
134 oi = OCFS2_I(inode); in ocfs2_lookup()
162 OCFS2_I(dir)->ip_blkno); in ocfs2_lookup()
252 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_mknod()
427 OCFS2_I(dir)->ip_blkno); in ocfs2_mknod()
436 OCFS2_I(inode)->ip_blkno, parent_fe_bh, in ocfs2_mknod()
480 OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SKIP_ORPHAN_DIR; in ocfs2_mknod()
505 struct ocfs2_inode_info *oi = OCFS2_I(inode); in __ocfs2_mknod_locked()
649 OCFS2_I(dir)->ip_blkno, mode); in ocfs2_mkdir()
665 (unsigned long long)OCFS2_I(dir)->ip_blkno, mode); in ocfs2_create()
[all …]
Daops.c55 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_symlink_get_block()
128 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_lock_get_block()
146 trace_ocfs2_get_block((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block()
149 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_get_block()
201 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_get_block()
202 …mlog(ML_ERROR, "Size %llu, clusters %u\n", (unsigned long long)i_size_read(inode), OCFS2_I(inode)-… in ocfs2_get_block()
210 trace_ocfs2_get_block_end((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block()
231 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_read_inline_data()
241 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_read_inline_data()
265 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_readpage_inline()
[all …]
Dextent_map.c44 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_init()
76 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_lookup()
105 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_trunc()
218 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_insert_rec()
606 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_get_clusters()
711 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_fiemap_inline()
759 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap()
764 if ((OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) || in ocfs2_fiemap()
814 up_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap()
831 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_overwrite_io()
[all …]
Ddir.c75 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer()
144 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); in ocfs2_init_dir_trailer()
194 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INDEXED_DIR_FL) in ocfs2_dir_indexed()
320 (unsigned long long)OCFS2_I(dir)->ip_blkno, error_msg, in ocfs2_check_dir_entry()
480 OCFS2_I(dir)->ip_blkno) { in ocfs2_check_dir_trailer()
484 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_check_dir_trailer()
684 start = OCFS2_I(dir)->ip_dir_start_lookup; in ocfs2_find_entry_el()
723 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_find_entry_el()
732 OCFS2_I(dir)->ip_dir_start_lookup = block; in ocfs2_find_entry_el()
922 trace_ocfs2_dx_dir_search((unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_dx_dir_search()
[all …]
Dacl.c306 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_iop_get_acl()
308 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_iop_get_acl()
327 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_acl_chmod()
329 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_acl_chmod()
360 down_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_init_acl()
363 up_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_init_acl()
Dmmap.c43 trace_ocfs2_fault(OCFS2_I(vma->vm_file->f_mapping->host)->ip_blkno, in ocfs2_fault()
144 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite()
148 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite()
Djournal.h129 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_inode_is_new()
581 &OCFS2_I(inode)->ip_jinode, in ocfs2_jbd2_inode_add_write()
590 &OCFS2_I(inode)->ip_jinode, in ocfs2_begin_ordered_truncate()
598 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_update_inode_fsync_trans()
Ddlmglue.c575 ocfs2_build_lock_name(type, OCFS2_I(inode)->ip_blkno, in ocfs2_inode_lock_res_init()
622 u64 inode_blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_dentry_lock_res_init()
728 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_lock_res_init()
1724 mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_create_new_inode_locks()
1734 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_rw_lockres, 1, 1); in ocfs2_create_new_inode_locks()
1744 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_inode_lockres, 1, 0); in ocfs2_create_new_inode_locks()
1750 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); in ocfs2_create_new_inode_locks()
1765 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_rw_lock()
1771 lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_lock()
1789 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_try_rw_lock()
[all …]
Dexport.c140 (unsigned long long)OCFS2_I(dir)->ip_blkno); in ocfs2_get_parent()
220 blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_encode_fh()
231 blkno = OCFS2_I(parent)->ip_blkno; in ocfs2_encode_fh()
Dsysfile.c157 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; in _ocfs2_get_system_file_inode()
159 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres. in _ocfs2_get_system_file_inode()
Dresize.c149 spin_lock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode()
150 OCFS2_I(bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_update_last_group_and_inode()
152 spin_unlock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode()
559 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
560 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add()
562 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
Drefcounttree.c556 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree()
697 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree()
759 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree()
927 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree()
2345 trace_ocfs2_mark_extent_refcounted(OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_refcounted()
3429 trace_ocfs2_refcount_cow_hunk(OCFS2_I(inode)->ip_blkno, in ocfs2_refcount_cow_hunk()
3797 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree()
3965 BUG_ON(!(OCFS2_I(s_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_duplicate_inline_data()
3984 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data()
3985 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL; in ocfs2_duplicate_inline_data()
[all …]
Djournal.c846 OCFS2_I(inode)->ip_open_count++; in ocfs2_journal_init()
870 OCFS2_I(inode)->ip_clusters); in ocfs2_journal_init()
900 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_init()
1019 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_shutdown()
1222 (unsigned long long)OCFS2_I(journal->j_inode)->ip_blkno); in ocfs2_complete_recovery()
1631 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_replay_journal()
2053 OCFS2_I(iter)->ip_flags |= OCFS2_INODE_DIO_ORPHAN_ENTRY; in ocfs2_orphan_filldir()
2057 if (OCFS2_I(iter)->ip_next_orphan) { in ocfs2_orphan_filldir()
2062 trace_ocfs2_orphan_filldir((unsigned long long)OCFS2_I(iter)->ip_blkno); in ocfs2_orphan_filldir()
2065 OCFS2_I(iter)->ip_next_orphan = p->head; in ocfs2_orphan_filldir()
[all …]
Dsuballoc.c379 bg->bg_parent_dinode = cpu_to_le64(OCFS2_I(alloc_inode)->ip_blkno); in ocfs2_block_group_fill()
735 spin_lock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc()
736 OCFS2_I(alloc_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_block_group_alloc()
739 spin_unlock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc()
1500 OCFS2_I(inode)->ip_clusters) { in ocfs2_cluster_group_search()
1501 max_bits = OCFS2_I(inode)->ip_clusters - gd_cluster_off; in ocfs2_cluster_group_search()
1505 OCFS2_I(inode)->ip_clusters, max_bits); in ocfs2_cluster_group_search()
1753 (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 …]
Dxattr.c633 down_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_calc_xattr_init()
637 up_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_calc_xattr_init()
978 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_list()
1033 struct ocfs2_inode_info *oi = OCFS2_I(d_inode(dentry)); in ocfs2_listxattr()
1160 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_get()
1289 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_get_nolock()
1335 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get()
1338 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get()
2274 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_XATTR_FL)); in ocfs2_init_dinode_xa_loc()
2562 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_remove()
[all …]
Dlocks.c129 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
Dmove_extents.c784 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in __ocfs2_move_extents_range()
823 (unsigned long long)OCFS2_I(inode)->ip_blkno, in __ocfs2_move_extents_range()
936 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents()
940 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents()
Dquota_global.c314 down_write(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_lock_global_qf()
316 down_read(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_lock_global_qf()
324 up_write(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_unlock_global_qf()
327 up_read(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_unlock_global_qf()
Dsuballoc.h168 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
Dioctl.c73 ocfs2_get_inode_flags(OCFS2_I(inode)); in ocfs2_get_inode_attr()
74 *flags = OCFS2_I(inode)->ip_attr; in ocfs2_get_inode_attr()
83 struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); in ocfs2_set_inode_attr()
Dalloc.c5248 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_written()
5253 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_mark_extent_written()
5868 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append()
5888 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, index, in ocfs2_truncate_log_append()
5899 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append()
5963 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_replay_truncate_records()
6010 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in __ocfs2_flush_truncate_log()
6256 if (OCFS2_I(tl_inode)->ip_blkno == le64_to_cpu(tl_copy->i_blkno)) { in ocfs2_complete_truncate_log_recovery()
7030 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_inode_data_inline()
7056 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_convert_inline_data_to_extents()
[all …]

12