• Home
  • Raw
  • Download

Lines Matching refs:f

29 					struct jffs2_inode_info *f, struct jffs2_full_dnode *fd);
31 struct jffs2_inode_info *f, struct jffs2_full_dirent *fd);
33 struct jffs2_inode_info *f, struct jffs2_full_dirent *fd);
35 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
38 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
41 struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f);
126 struct jffs2_inode_info *f; in jffs2_garbage_collect_pass() local
434 f = jffs2_gc_fetch_inode(c, inum, !nlink); in jffs2_garbage_collect_pass()
435 if (IS_ERR(f)) { in jffs2_garbage_collect_pass()
436 ret = PTR_ERR(f); in jffs2_garbage_collect_pass()
439 if (!f) { in jffs2_garbage_collect_pass()
444 ret = jffs2_garbage_collect_live(c, jeb, raw, f); in jffs2_garbage_collect_pass()
446 jffs2_gc_release_inode(c, f); in jffs2_garbage_collect_pass()
478 struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f) in jffs2_garbage_collect_live() argument
486 mutex_lock(&f->sem); in jffs2_garbage_collect_live()
507 if (f->metadata && f->metadata->raw == raw) { in jffs2_garbage_collect_live()
508 fn = f->metadata; in jffs2_garbage_collect_live()
509 ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); in jffs2_garbage_collect_live()
514 for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { in jffs2_garbage_collect_live()
526 ret = jffs2_garbage_collect_pristine(c, f->inocache, raw); in jffs2_garbage_collect_live()
529 frag->node->raw = f->inocache->nodes; in jffs2_garbage_collect_live()
537 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
540 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
546 for (fd = f->dents; fd; fd=fd->next) { in jffs2_garbage_collect_live()
552 ret = jffs2_garbage_collect_dirent(c, jeb, f, fd); in jffs2_garbage_collect_live()
554 ret = jffs2_garbage_collect_deletion_dirent(c, jeb, f, fd); in jffs2_garbage_collect_live()
557 ref_offset(raw), f->inocache->ino); in jffs2_garbage_collect_live()
566 mutex_unlock(&f->sem); in jffs2_garbage_collect_live()
739 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) in jffs2_garbage_collect_metadata() argument
750 if (S_ISBLK(JFFS2_F_I_MODE(f)) || in jffs2_garbage_collect_metadata()
751 S_ISCHR(JFFS2_F_I_MODE(f)) ) { in jffs2_garbage_collect_metadata()
753 mdatalen = jffs2_encode_dev(&dev, JFFS2_F_I_RDEV(f)); in jffs2_garbage_collect_metadata()
757 } else if (S_ISLNK(JFFS2_F_I_MODE(f))) { in jffs2_garbage_collect_metadata()
764 ret = jffs2_read_dnode(c, f, fn, mdata, 0, mdatalen); in jffs2_garbage_collect_metadata()
784 last_frag = frag_last(&f->fragtree); in jffs2_garbage_collect_metadata()
790 ilen = JFFS2_F_I_SIZE(f); in jffs2_garbage_collect_metadata()
798 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata()
799 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata()
800 ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); in jffs2_garbage_collect_metadata()
801 ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); in jffs2_garbage_collect_metadata()
802 ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); in jffs2_garbage_collect_metadata()
804 ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); in jffs2_garbage_collect_metadata()
805 ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); in jffs2_garbage_collect_metadata()
806 ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_metadata()
814 new_fn = jffs2_write_dnode(c, f, &ri, mdata, mdatalen, ALLOC_GC); in jffs2_garbage_collect_metadata()
823 f->metadata = new_fn; in jffs2_garbage_collect_metadata()
825 if (S_ISLNK(JFFS2_F_I_MODE(f))) in jffs2_garbage_collect_metadata()
831 struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) in jffs2_garbage_collect_dirent() argument
844 rd.pino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_dirent()
845 rd.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_dirent()
849 if (JFFS2_F_I_MTIME(f) == JFFS2_F_I_CTIME(f)) in jffs2_garbage_collect_dirent()
850 rd.mctime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_dirent()
864 new_fd = jffs2_write_dirent(c, f, &rd, fd->name, rd.nsize, ALLOC_GC); in jffs2_garbage_collect_dirent()
871 jffs2_add_fd_to_list(c, new_fd, &f->dents); in jffs2_garbage_collect_dirent()
876 struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) in jffs2_garbage_collect_deletion_dirent() argument
878 struct jffs2_full_dirent **fdp = &f->dents; in jffs2_garbage_collect_deletion_dirent()
904 for (raw = f->inocache->nodes; raw != (void *)f->inocache; raw = raw->next_in_ino) { in jffs2_garbage_collect_deletion_dirent()
965 return jffs2_garbage_collect_dirent(c, jeb, f, fd); in jffs2_garbage_collect_deletion_dirent()
986 fd->name, f->inocache->ino); in jffs2_garbage_collect_deletion_dirent()
994 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, in jffs2_garbage_collect_hole() argument
1004 f->inocache->ino, start, end); in jffs2_garbage_collect_hole()
1038 start, end, f->inocache->ino); in jffs2_garbage_collect_hole()
1045 start, end, f->inocache->ino); in jffs2_garbage_collect_hole()
1055 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_hole()
1056 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_hole()
1063 frag = frag_last(&f->fragtree); in jffs2_garbage_collect_hole()
1069 ilen = JFFS2_F_I_SIZE(f); in jffs2_garbage_collect_hole()
1071 ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); in jffs2_garbage_collect_hole()
1072 ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); in jffs2_garbage_collect_hole()
1073 ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); in jffs2_garbage_collect_hole()
1075 ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); in jffs2_garbage_collect_hole()
1076 ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); in jffs2_garbage_collect_hole()
1077 ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_hole()
1088 new_fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_GC); in jffs2_garbage_collect_hole()
1094 if (je32_to_cpu(ri.version) == f->highest_version) { in jffs2_garbage_collect_hole()
1095 jffs2_add_full_dnode_to_inode(c, f, new_fn); in jffs2_garbage_collect_hole()
1096 if (f->metadata) { in jffs2_garbage_collect_hole()
1097 jffs2_mark_node_obsolete(c, f->metadata->raw); in jffs2_garbage_collect_hole()
1098 jffs2_free_full_dnode(f->metadata); in jffs2_garbage_collect_hole()
1099 f->metadata = NULL; in jffs2_garbage_collect_hole()
1113 f->highest_version, je32_to_cpu(ri.ino)); in jffs2_garbage_collect_hole()
1119 for (frag = jffs2_lookup_node_frag(&f->fragtree, fn->ofs); in jffs2_garbage_collect_hole()
1145 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, in jffs2_garbage_collect_dnode() argument
1159 f->inocache->ino, start, end); in jffs2_garbage_collect_dnode()
1178 frag = jffs2_lookup_node_frag(&f->fragtree, start); in jffs2_garbage_collect_dnode()
1239 frag = jffs2_lookup_node_frag(&f->fragtree, end-1); in jffs2_garbage_collect_dnode()
1294 D1(BUG_ON(end > frag_last(&f->fragtree)->ofs + frag_last(&f->fragtree)->size)); in jffs2_garbage_collect_dnode()
1307 mutex_unlock(&f->sem); in jffs2_garbage_collect_dnode()
1308 pg_ptr = jffs2_gc_fetch_page(c, f, start, &pg); in jffs2_garbage_collect_dnode()
1309 mutex_lock(&f->sem); in jffs2_garbage_collect_dnode()
1336 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); in jffs2_garbage_collect_dnode()
1343 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_dnode()
1344 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_dnode()
1345 ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); in jffs2_garbage_collect_dnode()
1346 ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); in jffs2_garbage_collect_dnode()
1347 ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); in jffs2_garbage_collect_dnode()
1348 ri.isize = cpu_to_je32(JFFS2_F_I_SIZE(f)); in jffs2_garbage_collect_dnode()
1349 ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); in jffs2_garbage_collect_dnode()
1350 ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); in jffs2_garbage_collect_dnode()
1351 ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_dnode()
1360 new_fn = jffs2_write_dnode(c, f, &ri, comprbuf, cdatalen, ALLOC_GC); in jffs2_garbage_collect_dnode()
1370 ret = jffs2_add_full_dnode_to_inode(c, f, new_fn); in jffs2_garbage_collect_dnode()
1372 if (f->metadata) { in jffs2_garbage_collect_dnode()
1373 jffs2_mark_node_obsolete(c, f->metadata->raw); in jffs2_garbage_collect_dnode()
1374 jffs2_free_full_dnode(f->metadata); in jffs2_garbage_collect_dnode()
1375 f->metadata = NULL; in jffs2_garbage_collect_dnode()