Lines Matching full:ic
430 * create_xattr_ref(c, ic, xd)
435 * jffs2_xattr_delete_inode(c, ic)
437 * jffs2_xattr_free_inode(c, ic)
439 * check_xattr_ref_inode(c, ic)
441 * jffs2_xattr_do_crccheck_inode(c, ic)
525 rr.ino = cpu_to_je32(ref->ic->ino); in save_xattr_ref()
545 dbg_xattr("success on saving xref (ino=%u, xid=%u)\n", ref->ic->ino, ref->xd->xid); in save_xattr_ref()
550 …tic struct jffs2_xattr_ref *create_xattr_ref(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, in create_xattr_ref() argument
560 ref->ic = ic; in create_xattr_ref()
570 ref->next = ic->xref; in create_xattr_ref()
571 ic->xref = ref; in create_xattr_ref()
583 ref->ino = ref->ic->ino; in delete_xattr_ref()
596 void jffs2_xattr_delete_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in jffs2_xattr_delete_inode() argument
602 if (!ic || ic->pino_nlink > 0) in jffs2_xattr_delete_inode()
606 for (ref = ic->xref; ref; ref = _ref) { in jffs2_xattr_delete_inode()
610 ic->xref = NULL; in jffs2_xattr_delete_inode()
614 void jffs2_xattr_free_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in jffs2_xattr_free_inode() argument
621 for (ref = ic->xref; ref; ref = _ref) { in jffs2_xattr_free_inode()
630 ic->xref = NULL; in jffs2_xattr_free_inode()
634 static int check_xattr_ref_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in check_xattr_ref_inode() argument
636 /* success of check_xattr_ref_inode() means that inode (ic) dose not have in check_xattr_ref_inode()
643 if (likely(ic->flags & INO_FLAGS_XATTR_CHECKED)) in check_xattr_ref_inode()
648 for (ref=ic->xref, pref=&ic->xref; ref; pref=&ref->next, ref=ref->next) { in check_xattr_ref_inode()
683 ic->flags |= INO_FLAGS_XATTR_CHECKED; in check_xattr_ref_inode()
690 void jffs2_xattr_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in jffs2_xattr_do_crccheck_inode() argument
692 check_xattr_ref_inode(c, ic); in jffs2_xattr_do_crccheck_inode()
780 struct jffs2_inode_cache *ic; in jffs2_build_xattr_subsystem() local
840 ref->xd and ref->ic are not valid yet. */ in jffs2_build_xattr_subsystem()
842 ic = jffs2_get_ino_cache(c, ref->ino); in jffs2_build_xattr_subsystem()
843 if (!xd || !ic || !ic->pino_nlink) { in jffs2_build_xattr_subsystem()
853 ref->ic = ic; in jffs2_build_xattr_subsystem()
855 ref->next = ic->xref; in jffs2_build_xattr_subsystem()
856 ic->xref = ref; in jffs2_build_xattr_subsystem()
966 struct jffs2_inode_cache *ic = f->inocache; in jffs2_listxattr() local
974 rc = check_xattr_ref_inode(c, ic); in jffs2_listxattr()
981 for (ref=ic->xref, pref=&ic->xref; ref; pref=&ref->next, ref=ref->next) { in jffs2_listxattr()
982 BUG_ON(ref->ic != ic); in jffs2_listxattr()
1036 struct jffs2_inode_cache *ic = f->inocache; in do_jffs2_getxattr() local
1041 rc = check_xattr_ref_inode(c, ic); in do_jffs2_getxattr()
1047 for (ref=ic->xref, pref=&ic->xref; ref; pref=&ref->next, ref=ref->next) { in do_jffs2_getxattr()
1048 BUG_ON(ref->ic!=ic); in do_jffs2_getxattr()
1098 struct jffs2_inode_cache *ic = f->inocache; in do_jffs2_setxattr() local
1104 rc = check_xattr_ref_inode(c, ic); in do_jffs2_setxattr()
1119 for (ref=ic->xref, pref=&ic->xref; ref; pref=&ref->next, ref=ref->next) { in do_jffs2_setxattr()
1138 ref->ino = ic->ino; in do_jffs2_setxattr()
1150 ref->ic = ic; in do_jffs2_setxattr()
1190 newref = create_xattr_ref(c, ic, xd); in do_jffs2_setxattr()
1193 ref->next = ic->xref; in do_jffs2_setxattr()
1194 ic->xref = ref; in do_jffs2_setxattr()
1281 ref->ic->ino, ref->xd->xid, old_ofs, ref_offset(ref->node)); in jffs2_garbage_collect_xattr_ref()