Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 17 of 17) sorted by relevance

/fs/jffs2/
Dread.c25 struct jffs2_raw_inode *ri; in jffs2_read_dnode() local
32 ri = jffs2_alloc_raw_inode(); in jffs2_read_dnode()
33 if (!ri) in jffs2_read_dnode()
36 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); in jffs2_read_dnode()
38 jffs2_free_raw_inode(ri); in jffs2_read_dnode()
42 if (readlen != sizeof(*ri)) { in jffs2_read_dnode()
43 jffs2_free_raw_inode(ri); in jffs2_read_dnode()
45 ref_offset(fd->raw), sizeof(*ri), readlen); in jffs2_read_dnode()
48 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_read_dnode()
51 ref_offset(fd->raw), je32_to_cpu(ri->node_crc), in jffs2_read_dnode()
[all …]
Dfile.c145 struct jffs2_raw_inode ri; in jffs2_write_begin() local
152 ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, in jffs2_write_begin()
158 memset(&ri, 0, sizeof(ri)); in jffs2_write_begin()
160 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_begin()
161 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_write_begin()
162 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin()
163 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
165 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin()
166 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin()
167 ri.mode = cpu_to_jemode(inode->i_mode); in jffs2_write_begin()
[all …]
Dwrite.c23 uint32_t mode, struct jffs2_raw_inode *ri) in jffs2_do_new_inode() argument
41 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode()
43 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_new_inode()
44 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_new_inode()
45 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode()
46 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_new_inode()
47 ri->mode = cpu_to_jemode(mode); in jffs2_do_new_inode()
50 ri->version = cpu_to_je32(f->highest_version); in jffs2_do_new_inode()
59 struct jffs2_raw_inode *ri, const unsigned char *data, in jffs2_write_dnode() argument
71 D1(if(je32_to_cpu(ri->hdr_crc) != crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)) { in jffs2_write_dnode()
[all …]
Dgc.c700 struct jffs2_raw_inode ri; in jffs2_garbage_collect_metadata() local
730 ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &alloclen, in jffs2_garbage_collect_metadata()
734 sizeof(ri)+ mdatalen, ret); in jffs2_garbage_collect_metadata()
746 memset(&ri, 0, sizeof(ri)); in jffs2_garbage_collect_metadata()
747 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_garbage_collect_metadata()
748 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_metadata()
749 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
750 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata()
752 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata()
753 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata()
[all …]
Dfs.c32 struct jffs2_raw_inode *ri; in jffs2_do_setattr() local
71 ri = jffs2_alloc_raw_inode(); in jffs2_do_setattr()
72 if (!ri) { in jffs2_do_setattr()
78 ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &alloclen, in jffs2_do_setattr()
81 jffs2_free_raw_inode(ri); in jffs2_do_setattr()
89 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_setattr()
90 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_setattr()
91 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
92 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
94 ri->ino = cpu_to_je32(inode->i_ino); in jffs2_do_setattr()
[all …]
Ddir.c180 struct jffs2_raw_inode *ri; in jffs2_create() local
186 ri = jffs2_alloc_raw_inode(); in jffs2_create()
187 if (!ri) in jffs2_create()
194 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_create()
198 jffs2_free_raw_inode(ri); in jffs2_create()
217 ret = jffs2_do_create(c, dir_f, f, ri, in jffs2_create()
222 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(ri->ctime)); in jffs2_create()
224 jffs2_free_raw_inode(ri); in jffs2_create()
235 jffs2_free_raw_inode(ri); in jffs2_create()
302 struct jffs2_raw_inode *ri; in jffs2_symlink() local
[all …]
Dscan.c45 struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s);
949 struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s) in jffs2_scan_inode_node() argument
952 uint32_t crc, ino = je32_to_cpu(ri->ino); in jffs2_scan_inode_node()
966 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_scan_inode_node()
967 if (crc != je32_to_cpu(ri->node_crc)) { in jffs2_scan_inode_node()
970 ofs, je32_to_cpu(ri->node_crc), crc); in jffs2_scan_inode_node()
976 PAD(je32_to_cpu(ri->totlen))); in jffs2_scan_inode_node()
987 jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic); in jffs2_scan_inode_node()
990 je32_to_cpu(ri->ino), je32_to_cpu(ri->version), in jffs2_scan_inode_node()
991 je32_to_cpu(ri->offset), in jffs2_scan_inode_node()
[all …]
Dnodelist.h392 …de(struct jffs2_sb_info *c, struct jffs2_inode_info *f, uint32_t mode, struct jffs2_raw_inode *ri);
395 struct jffs2_raw_inode *ri, const unsigned char *data,
401 struct jffs2_raw_inode *ri, unsigned char *buf,
404 struct jffs2_raw_inode *ri, const char *name, int namelen);
Dsummary.c113 int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, in jffs2_sum_add_inode_mem() argument
121 temp->nodetype = ri->nodetype; in jffs2_sum_add_inode_mem()
122 temp->inode = ri->ino; in jffs2_sum_add_inode_mem()
123 temp->version = ri->version; in jffs2_sum_add_inode_mem()
125 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem()
Dsummary.h185 int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, uint32_t ofs);
Dos-linux.h182 struct jffs2_raw_inode *ri);
/fs/dlm/
Ddebug_fs.c361 struct rsbtbl_iter *ri = iter_ptr; in table_seq_show() local
364 switch (ri->format) { in table_seq_show()
366 rv = print_format1(ri->rsb, seq); in table_seq_show()
369 if (ri->header) { in table_seq_show()
373 ri->header = 0; in table_seq_show()
375 rv = print_format2(ri->rsb, seq); in table_seq_show()
378 if (ri->header) { in table_seq_show()
380 ri->header = 0; in table_seq_show()
382 rv = print_format3(ri->rsb, seq); in table_seq_show()
396 struct rsbtbl_iter *ri; in table_seq_start() local
[all …]
/fs/romfs/
Dinode.c285 struct romfs_inode ri; in romfs_readdir() local
298 if (romfs_copyfrom(i, &ri, offset, ROMFH_SIZE) <= 0) in romfs_readdir()
300 offset = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_readdir()
313 if (romfs_copyfrom(i, &ri, offset, ROMFH_SIZE) <= 0) in romfs_readdir()
324 nextfh = be32_to_cpu(ri.next); in romfs_readdir()
326 ino = be32_to_cpu(ri.spec); in romfs_readdir()
347 struct romfs_inode ri; in romfs_lookup() local
354 if (romfs_copyfrom(dir, &ri, offset, ROMFH_SIZE) <= 0) in romfs_lookup()
358 offset = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_lookup()
369 if (romfs_copyfrom(dir, &ri, offset, ROMFH_SIZE) <= 0) in romfs_lookup()
[all …]
/fs/btrfs/
Droot-tree.c172 struct btrfs_root_item *ri; in btrfs_find_dead_roots() local
215 ri = btrfs_item_ptr(leaf, slot, struct btrfs_root_item); in btrfs_find_dead_roots()
216 if (btrfs_disk_root_refs(leaf, ri) != 0) in btrfs_find_dead_roots()
254 struct btrfs_root_item *ri; in btrfs_del_root() local
265 ri = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_item); in btrfs_del_root()
267 refs = btrfs_disk_root_refs(leaf, ri); in btrfs_del_root()
Dprint-tree.c54 struct btrfs_root_item *ri; in btrfs_print_leaf() local
96 ri = btrfs_item_ptr(l, i, struct btrfs_root_item); in btrfs_print_leaf()
99 btrfs_disk_root_bytenr(l, ri), in btrfs_print_leaf()
100 btrfs_disk_root_refs(l, ri)); in btrfs_print_leaf()
Dinode.c2950 struct btrfs_root_item *ri; in fixup_tree_root_location() local
2963 ri = &(*sub_root)->root_item; in fixup_tree_root_location()
2964 location->objectid = btrfs_root_dirid(ri); in fixup_tree_root_location()
/fs/jfs/
Djfs_dtree.c182 int ri, struct component_name * key, int flag);
3765 int ri, struct component_name * key, int flag) in ciGetLeafPrefixKey() argument
3791 dtGetKey(rp, ri, &rkey, flag); in ciGetLeafPrefixKey()