Lines Matching defs:ic

37 next_inode(int *i, struct jffs2_inode_cache *ic, struct jffs2_sb_info *c)
40 if (ic->next)
41 return ic->next;
46 #define for_each_inode(i, c, ic) \
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,
58 dbg_fsbuild("building directory inode #%u\n", ic->ino);
61 for(fd = ic->scan_dents; fd; fd = fd->next) {
71 fd->name, fd->ino, ic->ino);
73 /* Clear the ic/raw union so it doesn't cause problems later. */
74 fd->ic = NULL;
78 /* From this point, fd->raw is no longer used so we can set fd->ic */
79 fd->ic = child_ic;
102 struct jffs2_inode_cache *ic;
123 for_each_inode(i, c, ic) {
124 if (ic->scan_dents) {
125 jffs2_build_inode_pass1(c, ic, &dir_hardlinks);
139 for_each_inode(i, c, ic) {
140 if (ic->pino_nlink)
143 jffs2_build_remove_unlinked_inode(c, ic, &dead_fds);
153 ic = jffs2_get_ino_cache(c, fd->ino);
155 if (ic)
156 jffs2_build_remove_unlinked_inode(c, ic, &dead_fds);
170 for_each_inode(i, c, ic) {
171 if (ic->flags & INO_FLAGS_IS_DIR)
172 ic->pino_nlink = 0;
178 for_each_inode(i, c, ic) {
179 while(ic->scan_dents) {
180 fd = ic->scan_dents;
181 ic->scan_dents = fd->next;
187 if (!fd->ic) {
194 BUG_ON(!(fd->ic->flags & INO_FLAGS_IS_DIR));
196 /* We clear ic->pino_nlink ��� directories' ic *only* if dir_hardlinks
198 * we don't do the check. And ic->pino_nlink still contains the nlink
200 if (dir_hardlinks && fd->ic->pino_nlink) {
202 fd->name, fd->ino, ic->ino, fd->ic->pino_nlink);
206 /* For directories, ic->pino_nlink holds that parent inode # */
207 fd->ic->pino_nlink = ic->ino;
211 ic->scan_dents = NULL;
229 for_each_inode(i, c, ic) {
230 while(ic->scan_dents) {
231 fd = ic->scan_dents;
232 ic->scan_dents = fd->next;
243 struct jffs2_inode_cache *ic,
249 dbg_fsbuild("removing ino #%u with nlink == zero.\n", ic->ino);
251 raw = ic->nodes;
252 while (raw != (void *)ic) {
259 if (ic->scan_dents) {
261 dbg_fsbuild("inode #%u was a directory which may have children...\n", ic->ino);
263 while(ic->scan_dents) {
266 fd = ic->scan_dents;
267 ic->scan_dents = fd->next;