Home
last modified time | relevance | path

Searched refs:ic (Results 1 – 21 of 21) sorted by relevance

/fs/jffs2/
Dbuild.c37 next_inode(int *i, struct jffs2_inode_cache *ic, struct jffs2_sb_info *c) in next_inode() argument
40 if (ic->next) in next_inode()
41 return ic->next; in next_inode()
46 #define for_each_inode(i, c, ic) \ argument
47 for (i = 0, ic = first_inode_chain(&i, (c)); \
48 ic; \
49 ic = next_inode(&i, ic, (c)))
53 struct jffs2_inode_cache *ic, in jffs2_build_inode_pass1() argument
58 dbg_fsbuild("building directory inode #%u\n", ic->ino); in jffs2_build_inode_pass1()
61 for(fd = ic->scan_dents; fd; fd = fd->next) { in jffs2_build_inode_pass1()
[all …]
Dxattr.c525 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()
[all …]
Dgc.c26 struct jffs2_inode_cache *ic,
127 struct jffs2_inode_cache *ic; in jffs2_garbage_collect_pass() local
159 for (ic = c->inocache_list[bucket]; ic; ic = ic->next) { in jffs2_garbage_collect_pass()
160 if (ic->ino < want_ino) in jffs2_garbage_collect_pass()
163 if (ic->state != INO_STATE_CHECKEDABSENT && in jffs2_garbage_collect_pass()
164 ic->state != INO_STATE_PRESENT) in jffs2_garbage_collect_pass()
168 ic->ino); in jffs2_garbage_collect_pass()
189 c->check_ino = ic->ino + c->inocache_hashsize; in jffs2_garbage_collect_pass()
191 if (!ic->pino_nlink) { in jffs2_garbage_collect_pass()
193 ic->ino); in jffs2_garbage_collect_pass()
[all …]
Dxattr.h55 struct jffs2_inode_cache *ic; /* reference to jffs2_inode_cache */ member
80 extern void jffs2_xattr_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
81 extern void jffs2_xattr_delete_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
82 extern void jffs2_xattr_free_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
109 #define jffs2_xattr_do_crccheck_inode(c, ic) argument
110 #define jffs2_xattr_delete_inode(c, ic) argument
111 #define jffs2_xattr_free_inode(c, ic) argument
Derase.c211 struct jffs2_inode_cache *ic = NULL; in jffs2_remove_node_refs_from_ino_list() local
222 ic = (struct jffs2_inode_cache *)(*prev); in jffs2_remove_node_refs_from_ino_list()
223 prev = &ic->nodes; in jffs2_remove_node_refs_from_ino_list()
245 if (!ic) { in jffs2_remove_node_refs_from_ino_list()
252 jeb->offset, jeb->offset + c->sector_size, ic->ino); in jffs2_remove_node_refs_from_ino_list()
259 this = ic->nodes; in jffs2_remove_node_refs_from_ino_list()
274 switch (ic->class) { in jffs2_remove_node_refs_from_ino_list()
277 jffs2_release_xattr_datum(c, (struct jffs2_xattr_datum *)ic); in jffs2_remove_node_refs_from_ino_list()
280 jffs2_release_xattr_ref(c, (struct jffs2_xattr_ref *)ic); in jffs2_remove_node_refs_from_ino_list()
284 if (ic->nodes == (void *)ic && ic->pino_nlink == 0) in jffs2_remove_node_refs_from_ino_list()
[all …]
Dscan.c967 struct jffs2_inode_cache *ic; in jffs2_scan_make_ino_cache() local
969 ic = jffs2_get_ino_cache(c, ino); in jffs2_scan_make_ino_cache()
970 if (ic) in jffs2_scan_make_ino_cache()
971 return ic; in jffs2_scan_make_ino_cache()
976 ic = jffs2_alloc_inode_cache(); in jffs2_scan_make_ino_cache()
977 if (!ic) { in jffs2_scan_make_ino_cache()
981 memset(ic, 0, sizeof(*ic)); in jffs2_scan_make_ino_cache()
983 ic->ino = ino; in jffs2_scan_make_ino_cache()
984 ic->nodes = (void *)ic; in jffs2_scan_make_ino_cache()
985 jffs2_add_ino_cache(c, ic); in jffs2_scan_make_ino_cache()
[all …]
Dwbuf.c465 struct jffs2_inode_cache *ic; in jffs2_wbuf_recover() local
473 ic = jffs2_raw_ref_to_ic(raw); in jffs2_wbuf_recover()
476 if (ic && ic->class == RAWNODE_CLASS_XATTR_DATUM) { in jffs2_wbuf_recover()
477 struct jffs2_xattr_datum *xd = (void *)ic; in jffs2_wbuf_recover()
481 ic = NULL; in jffs2_wbuf_recover()
482 } else if (ic && ic->class == RAWNODE_CLASS_XATTR_REF) { in jffs2_wbuf_recover()
483 struct jffs2_xattr_datum *xr = (void *)ic; in jffs2_wbuf_recover()
487 ic = NULL; in jffs2_wbuf_recover()
488 } else if (ic && ic->class == RAWNODE_CLASS_INODE_CACHE) { in jffs2_wbuf_recover()
489 struct jffs2_raw_node_ref **p = &ic->nodes; in jffs2_wbuf_recover()
[all …]
Dnodemgmt.c502 struct jffs2_inode_cache *ic) in jffs2_add_physical_node_ref() argument
530 new = jffs2_link_node_ref(c, jeb, ofs, len, ic); in jffs2_add_physical_node_ref()
804 struct jffs2_inode_cache *ic; in jffs2_mark_node_obsolete() local
809 ic = jffs2_raw_ref_to_ic(ref); in jffs2_mark_node_obsolete()
810 for (p = &ic->nodes; (*p) != ref; p = &((*p)->next_in_ino)) in jffs2_mark_node_obsolete()
816 switch (ic->class) { in jffs2_mark_node_obsolete()
819 jffs2_release_xattr_datum(c, (struct jffs2_xattr_datum *)ic); in jffs2_mark_node_obsolete()
822 jffs2_release_xattr_ref(c, (struct jffs2_xattr_ref *)ic); in jffs2_mark_node_obsolete()
826 if (ic->nodes == (void *)ic && ic->pino_nlink == 0) in jffs2_mark_node_obsolete()
827 jffs2_del_ino_cache(c, ic); in jffs2_mark_node_obsolete()
Dsummary.c373 struct jffs2_inode_cache *ic) in sum_link_node_ref() argument
381 return jffs2_link_node_ref(c, jeb, jeb->offset + ofs, len, ic); in sum_link_node_ref()
389 struct jffs2_inode_cache *ic; in jffs2_sum_process_sum_data() local
418 ic = jffs2_scan_make_ino_cache(c, ino); in jffs2_sum_process_sum_data()
419 if (!ic) { in jffs2_sum_process_sum_data()
425 PAD(je32_to_cpu(spi->totlen)), ic); in jffs2_sum_process_sum_data()
467 ic = jffs2_scan_make_ino_cache(c, je32_to_cpu(spd->pino)); in jffs2_sum_process_sum_data()
468 if (!ic) { in jffs2_sum_process_sum_data()
474 PAD(je32_to_cpu(spd->totlen)), ic); in jffs2_sum_process_sum_data()
482 jffs2_add_fd_to_list(c, fd, &ic->scan_dents); in jffs2_sum_process_sum_data()
Dnodelist.h255 struct jffs2_inode_cache *ic; /* Just during part of build */ member
365 void jffs2_set_inocache_state(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state);
378 struct jffs2_inode_cache *ic);
391 struct jffs2_inode_cache *ic);
418 int jffs2_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
Dwrite.c26 struct jffs2_inode_cache *ic; in jffs2_do_new_inode() local
28 ic = jffs2_alloc_inode_cache(); in jffs2_do_new_inode()
29 if (!ic) { in jffs2_do_new_inode()
33 memset(ic, 0, sizeof(*ic)); in jffs2_do_new_inode()
35 f->inocache = ic; in jffs2_do_new_inode()
Dnodelist.c408 void jffs2_set_inocache_state(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state) in jffs2_set_inocache_state() argument
411 ic->state = state; in jffs2_set_inocache_state()
588 struct jffs2_inode_cache *ic) in jffs2_link_node_ref() argument
626 if (ic) { in jffs2_link_node_ref()
627 ref->next_in_ino = ic->nodes; in jffs2_link_node_ref()
628 ic->nodes = ref; in jffs2_link_node_ref()
Dfs.c626 struct jffs2_inode_cache *ic; in jffs2_gc_fetch_inode() local
649 ic = jffs2_get_ino_cache(c, inum); in jffs2_gc_fetch_inode()
650 if (!ic) { in jffs2_gc_fetch_inode()
656 if (ic->state != INO_STATE_CHECKEDABSENT) { in jffs2_gc_fetch_inode()
659 ic->ino, ic->state); in jffs2_gc_fetch_inode()
Dreadinode.c1392 int jffs2_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in jffs2_do_crccheck_inode() argument
1403 f->inocache = ic; in jffs2_do_crccheck_inode()
1408 jffs2_xattr_do_crccheck_inode(c, ic); in jffs2_do_crccheck_inode()
DREADME.Locking155 xattr related objects which include stuff in superblock and ic->xref.
/fs/ntfs/
Dunistr.c55 const ntfschar *s2, size_t s2_len, const IGNORE_CASE_BOOL ic, in ntfs_are_names_equal() argument
60 if (ic == CASE_SENSITIVE) in ntfs_are_names_equal()
85 const int err_val, const IGNORE_CASE_BOOL ic, in ntfs_collate_names() argument
97 if (ic) { in ntfs_collate_names()
212 const int err_val, const IGNORE_CASE_BOOL ic, in ntfs_file_compare_values() argument
219 err_val, ic, upcase, upcase_len); in ntfs_file_compare_values()
Dntfs.h96 const IGNORE_CASE_BOOL ic,
100 const int err_val, const IGNORE_CASE_BOOL ic,
111 const int err_val, const IGNORE_CASE_BOOL ic,
Dattrib.c576 const u32 name_len, const IGNORE_CASE_BOOL ic, in ntfs_attr_find() argument
640 a->name_length, ic, upcase, upcase_len)) { in ntfs_attr_find()
869 const IGNORE_CASE_BOOL ic, const VCN lowest_vcn, in ntfs_external_attr_find() argument
939 name_len, ic, vol->upcase, vol->upcase_len)) { in ntfs_external_attr_find()
1117 return ntfs_attr_find(AT_END, name, name_len, ic, val, val_len, in ntfs_external_attr_find()
1151 err = ntfs_attr_find(type, name, name_len, ic, val, val_len, in ntfs_external_attr_find()
1198 const u32 name_len, const IGNORE_CASE_BOOL ic, in ntfs_attr_lookup() argument
1213 return ntfs_attr_find(type, name, name_len, ic, val, val_len, in ntfs_attr_lookup()
1215 return ntfs_external_attr_find(type, name, name_len, ic, lowest_vcn, in ntfs_attr_lookup()
Ddir.c633 IGNORE_CASE_BOOL ic;
697 ic = ie->key.file_name.file_name_type ? IGNORE_CASE :
707 ie->key.file_name.file_name_length, ic,
884 ic = ie->key.file_name.file_name_type ? IGNORE_CASE :
894 ie->key.file_name.file_name_length, ic,
Dattrib.h60 const u32 name_len, const IGNORE_CASE_BOOL ic,
/fs/xfs/
Dxfs_itable.c374 struct xfs_inumbers_chunk *ic = data; in xfs_inumbers_walk() local
377 error = ic->formatter(ic->breq, &inogrp); in xfs_inumbers_walk()
381 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
394 struct xfs_inumbers_chunk ic = { in xfs_inumbers() local
413 xfs_inumbers_walk, breq->icount, &ic); in xfs_inumbers()