/fs/ocfs2/ |
D | uptodate.c | 80 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_metadata_cache_init() local 81 struct ocfs2_caching_info *ci = &oi->ip_metadata_cache; in ocfs2_metadata_cache_init() 83 oi->ip_flags |= OCFS2_INODE_CACHE_INLINE; in ocfs2_metadata_cache_init() 117 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_metadata_cache_purge() local 119 struct ocfs2_caching_info *ci = &oi->ip_metadata_cache; in ocfs2_metadata_cache_purge() 122 spin_lock(&oi->ip_lock); in ocfs2_metadata_cache_purge() 123 tree = !(oi->ip_flags & OCFS2_INODE_CACHE_INLINE); in ocfs2_metadata_cache_purge() 127 tree ? "array" : "tree", (unsigned long long)oi->ip_blkno); in ocfs2_metadata_cache_purge() 136 spin_unlock(&oi->ip_lock); in ocfs2_metadata_cache_purge() 144 (unsigned long long)oi->ip_blkno, to_purge, purged); in ocfs2_metadata_cache_purge() [all …]
|
D | inode.c | 97 void ocfs2_get_inode_flags(struct ocfs2_inode_info *oi) in ocfs2_get_inode_flags() argument 99 unsigned int flags = oi->vfs_inode.i_flags; in ocfs2_get_inode_flags() 101 oi->ip_attr &= ~(OCFS2_SYNC_FL|OCFS2_APPEND_FL| in ocfs2_get_inode_flags() 104 oi->ip_attr |= OCFS2_SYNC_FL; in ocfs2_get_inode_flags() 106 oi->ip_attr |= OCFS2_APPEND_FL; in ocfs2_get_inode_flags() 108 oi->ip_attr |= OCFS2_IMMUTABLE_FL; in ocfs2_get_inode_flags() 110 oi->ip_attr |= OCFS2_NOATIME_FL; in ocfs2_get_inode_flags() 112 oi->ip_attr |= OCFS2_DIRSYNC_FL; in ocfs2_get_inode_flags() 180 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_find_actor() local 189 if (oi->ip_blkno != args->fi_blkno) in ocfs2_find_actor() [all …]
|
D | extent_map.c | 54 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_init() local 56 oi->ip_extent_map.em_num_items = 0; in ocfs2_extent_map_init() 57 INIT_LIST_HEAD(&oi->ip_extent_map.em_list); in ocfs2_extent_map_init() 86 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_lookup() local 89 spin_lock(&oi->ip_lock); in ocfs2_extent_map_lookup() 91 __ocfs2_extent_map_lookup(&oi->ip_extent_map, cpos, &emi); in ocfs2_extent_map_lookup() 101 spin_unlock(&oi->ip_lock); in ocfs2_extent_map_lookup() 115 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_trunc() local 116 struct ocfs2_extent_map *em = &oi->ip_extent_map; in ocfs2_extent_map_trunc() 120 spin_lock(&oi->ip_lock); in ocfs2_extent_map_trunc() [all …]
|
D | super.c | 365 struct ocfs2_inode_info *oi; in ocfs2_alloc_inode() local 367 oi = kmem_cache_alloc(ocfs2_inode_cachep, GFP_NOFS); in ocfs2_alloc_inode() 368 if (!oi) in ocfs2_alloc_inode() 371 jbd2_journal_init_jbd_inode(&oi->ip_jinode, &oi->vfs_inode); in ocfs2_alloc_inode() 372 return &oi->vfs_inode; in ocfs2_alloc_inode() 1444 struct ocfs2_inode_info *oi = data; in ocfs2_inode_init_once() local 1446 oi->ip_flags = 0; in ocfs2_inode_init_once() 1447 oi->ip_open_count = 0; in ocfs2_inode_init_once() 1448 spin_lock_init(&oi->ip_lock); in ocfs2_inode_init_once() 1449 ocfs2_extent_map_init(&oi->vfs_inode); in ocfs2_inode_init_once() [all …]
|
D | file.c | 104 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_open() local 109 spin_lock(&oi->ip_lock); in ocfs2_file_open() 115 spin_unlock(&oi->ip_lock); in ocfs2_file_open() 122 oi->ip_flags |= OCFS2_INODE_OPEN_DIRECT; in ocfs2_file_open() 124 oi->ip_open_count++; in ocfs2_file_open() 125 spin_unlock(&oi->ip_lock); in ocfs2_file_open() 133 spin_lock(&oi->ip_lock); in ocfs2_file_open() 134 oi->ip_open_count--; in ocfs2_file_open() 135 spin_unlock(&oi->ip_lock); in ocfs2_file_open() 145 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_release() local [all …]
|
D | dlmglue.c | 629 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_lock_res_init() local 632 ocfs2_build_lock_name(OCFS2_LOCK_TYPE_FLOCK, oi->ip_blkno, in ocfs2_file_lock_res_init() 1865 struct ocfs2_inode_info *oi = OCFS2_I(inode); in __ocfs2_stuff_meta_lvb() local 1866 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in __ocfs2_stuff_meta_lvb() 1878 if (oi->ip_flags & OCFS2_INODE_DELETED) { in __ocfs2_stuff_meta_lvb() 1885 lvb->lvb_iclusters = cpu_to_be32(oi->ip_clusters); in __ocfs2_stuff_meta_lvb() 1896 lvb->lvb_iattr = cpu_to_be32(oi->ip_attr); in __ocfs2_stuff_meta_lvb() 1897 lvb->lvb_idynfeatures = cpu_to_be16(oi->ip_dyn_features); in __ocfs2_stuff_meta_lvb() 1915 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_refresh_inode_from_lvb() local 1916 struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; in ocfs2_refresh_inode_from_lvb() [all …]
|
D | xattr.c | 823 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_list() local 826 if (!(oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL)) in ocfs2_xattr_ibody_list() 880 struct ocfs2_inode_info *oi = OCFS2_I(dentry->d_inode); in ocfs2_listxattr() local 885 if (!(oi->ip_dyn_features & OCFS2_HAS_XATTR_FL)) in ocfs2_listxattr() 896 down_read(&oi->ip_xattr_sem); in ocfs2_listxattr() 910 up_read(&oi->ip_xattr_sem); in ocfs2_listxattr() 1006 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_get() local 1012 if (!(oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL)) in ocfs2_xattr_ibody_get() 1130 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_get_nolock() local 1141 if (!(oi->ip_dyn_features & OCFS2_HAS_XATTR_FL)) in ocfs2_xattr_get_nolock() [all …]
|
D | aops.c | 276 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_readpage() local 290 if (down_read_trylock(&oi->ip_alloc_sem) == 0) { in ocfs2_readpage() 312 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_readpage() 343 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_readpages() local 355 if (down_read_trylock(&oi->ip_alloc_sem) == 0) { in ocfs2_readpages() 364 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_readpages() 379 up_read(&oi->ip_alloc_sem); in ocfs2_readpages() 1557 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_to_write_inline_data() local 1561 (unsigned long long)oi->ip_blkno, len, (unsigned long long)pos, in ocfs2_try_to_write_inline_data() 1562 oi->ip_dyn_features); in ocfs2_try_to_write_inline_data() [all …]
|
D | journal.c | 1858 struct ocfs2_inode_info *oi; in ocfs2_recover_orphans() local 1872 oi = OCFS2_I(inode); in ocfs2_recover_orphans() 1873 mlog(0, "iput orphan %llu\n", (unsigned long long)oi->ip_blkno); in ocfs2_recover_orphans() 1875 iter = oi->ip_next_orphan; in ocfs2_recover_orphans() 1877 spin_lock(&oi->ip_lock); in ocfs2_recover_orphans() 1882 oi->ip_flags &= ~(OCFS2_INODE_DELETED|OCFS2_INODE_SKIP_DELETE); in ocfs2_recover_orphans() 1886 oi->ip_flags |= OCFS2_INODE_MAYBE_ORPHANED; in ocfs2_recover_orphans() 1887 spin_unlock(&oi->ip_lock); in ocfs2_recover_orphans()
|
D | dir.c | 1406 struct ocfs2_inode_info *oi = OCFS2_I(dir); in ocfs2_expand_inline_dir() local 1434 down_write(&oi->ip_alloc_sem); in ocfs2_expand_inline_dir() 1517 spin_lock(&oi->ip_lock); in ocfs2_expand_inline_dir() 1518 oi->ip_dyn_features &= ~OCFS2_INLINE_DATA_FL; in ocfs2_expand_inline_dir() 1519 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_expand_inline_dir() 1520 spin_unlock(&oi->ip_lock); in ocfs2_expand_inline_dir() 1585 up_write(&oi->ip_alloc_sem); in ocfs2_expand_inline_dir()
|
D | inode.h | 149 void ocfs2_get_inode_flags(struct ocfs2_inode_info *oi);
|
D | namei.c | 108 struct ocfs2_inode_info *oi; in ocfs2_lookup() local 140 oi = OCFS2_I(inode); in ocfs2_lookup() 146 spin_lock(&oi->ip_lock); in ocfs2_lookup() 147 oi->ip_flags &= ~OCFS2_INODE_MAYBE_ORPHANED; in ocfs2_lookup() 148 spin_unlock(&oi->ip_lock); in ocfs2_lookup()
|
D | alloc.c | 1610 struct ocfs2_inode_info *oi = OCFS2_I(inode); in __ocfs2_find_path() local 1618 (unsigned long long)oi->ip_blkno, in __ocfs2_find_path() 1644 (unsigned long long)oi->ip_blkno, in __ocfs2_find_path() 1666 (unsigned long long)oi->ip_blkno, in __ocfs2_find_path() 6918 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_inode_data_inline() local 6921 spin_lock(&oi->ip_lock); in ocfs2_set_inode_data_inline() 6922 oi->ip_dyn_features |= OCFS2_INLINE_DATA_FL; in ocfs2_set_inode_data_inline() 6923 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_set_inode_data_inline() 6924 spin_unlock(&oi->ip_lock); in ocfs2_set_inode_data_inline() 6942 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_convert_inline_data_to_extents() local [all …]
|
/fs/omfs/ |
D | dir.c | 40 struct omfs_inode *oi; in omfs_scan_list() local 52 oi = (struct omfs_inode *) bh->b_data; in omfs_scan_list() 53 if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, block)) { in omfs_scan_list() 58 if (strncmp(oi->i_name, name, namelen) == 0) in omfs_scan_list() 62 block = be64_to_cpu(oi->i_sibling); in omfs_scan_list() 91 struct omfs_inode *oi; in omfs_make_empty() local 105 oi = (struct omfs_inode *) bh->b_data; in omfs_make_empty() 106 oi->i_head.h_self = cpu_to_be64(inode->i_ino); in omfs_make_empty() 107 oi->i_sibling = ~cpu_to_be64(0ULL); in omfs_make_empty() 119 struct omfs_inode *oi; in omfs_add_link() local [all …]
|
D | inode.c | 73 static void omfs_update_checksums(struct omfs_inode *oi) in omfs_update_checksums() argument 77 unsigned char *ptr = (unsigned char *) oi; in omfs_update_checksums() 79 count = be32_to_cpu(oi->i_head.h_body_size); in omfs_update_checksums() 83 oi->i_head.h_crc = cpu_to_be16(crc); in omfs_update_checksums() 89 oi->i_head.h_check_xor = xor; in omfs_update_checksums() 94 struct omfs_inode *oi; in omfs_write_inode() local 109 oi = (struct omfs_inode *) bh->b_data; in omfs_write_inode() 111 oi->i_head.h_self = cpu_to_be64(inode->i_ino); in omfs_write_inode() 113 oi->i_type = OMFS_DIR; in omfs_write_inode() 115 oi->i_type = OMFS_FILE; in omfs_write_inode() [all …]
|
/fs/openpromfs/ |
D | inode.c | 145 struct op_inode_info *oi = OP_I(inode); in property_open() local 148 BUG_ON(oi->type != op_inode_prop); in property_open() 153 m->private = oi->u.prop; in property_open() 181 struct op_inode_info *ent_oi, *oi = OP_I(dir); in openpromfs_lookup() local 191 BUG_ON(oi->type != op_inode_node); in openpromfs_lookup() 193 dp = oi->u.node; in openpromfs_lookup() 266 struct op_inode_info *oi = OP_I(inode); in openpromfs_readdir() local 267 struct device_node *dp = oi->u.node; in openpromfs_readdir() 337 struct op_inode_info *oi; in openprom_alloc_inode() local 339 oi = kmem_cache_alloc(op_inode_cachep, GFP_KERNEL); in openprom_alloc_inode() [all …]
|