Lines Matching refs:iagno
293 int iagno, ino, extno, rc; in diRead() local
311 iagno = INOTOIAG(ip->i_ino); in diRead()
316 rc = diIAGRead(imap, iagno, &mp); in diRead()
848 int iagno, ino, extno, bitno, sword, agno; in diFree() local
867 iagno = INOTOIAG(inum); in diFree()
872 if (iagno >= imap->im_nextiag) { in diFree()
876 (uint) inum, iagno, imap->im_nextiag); in diFree()
895 if ((rc = diIAGRead(imap, iagno, &mp))) { in diFree()
966 aiagp->inofreeback = cpu_to_le32(iagno); in diFree()
977 imap->im_agctl[agno].inofree = iagno; in diFree()
1128 aiagp->extfreeback = cpu_to_le32(iagno); in diFree()
1133 imap->im_agctl[agno].extfree = iagno; in diFree()
1152 imap->im_freeiag = iagno; in diFree()
1256 iplist[1] = (struct inode *) (size_t)iagno; in diFree()
1293 diInitInode(struct inode *ip, int iagno, int ino, int extno, struct iag * iagp) in diInitInode() argument
1297 ip->i_ino = (iagno << L2INOSPERIAG) + ino; in diInitInode()
1322 int rc, ino, iagno, addext, extno, bitno, sword; in diAlloc() local
1385 iagno = INOTOIAG(inum); in diAlloc()
1386 if ((rc = diIAGRead(imap, iagno, &mp))) { in diAlloc()
1432 diInitInode(ip, iagno, ino, extno, in diAlloc()
1515 diInitInode(ip, iagno, ino, extno, in diAlloc()
1554 diInitInode(ip, iagno, in diAlloc()
1764 int iagno, ino, rc, rem, extno, sword; in diAllocIno() local
1770 if ((iagno = imap->im_agctl[agno].inofree) < 0) in diAllocIno()
1778 if ((rc = diIAGRead(imap, iagno, &mp))) { in diAllocIno()
1847 diInitInode(ip, iagno, ino, extno, iagp); in diAllocIno()
1888 int rem, iagno, sword, extno, rc; in diAllocExt() local
1895 if ((iagno = imap->im_agctl[agno].extfree) < 0) { in diAllocExt()
1899 if ((rc = diNewIAG(imap, &iagno, agno, &mp))) { in diAllocExt()
1912 if ((rc = diIAGRead(imap, iagno, &mp))) { in diAllocExt()
1956 imap->im_freeiag = iagno; in diAllocExt()
1965 diInitInode(ip, iagno, extno << L2INOSPEREXT, extno, iagp); in diAllocExt()
2151 int agno, iagno, fwd, back, freei = 0, sword, rc; in diNewExt() local
2179 iagno = le32_to_cpu(iagp->iagnum); in diNewExt()
2258 ino = (iagno << L2INOSPERIAG) + (extno << L2INOSPEREXT); in diNewExt()
2308 aiagp->extfreeback = cpu_to_le32(iagno); in diNewExt()
2312 imap->im_agctl[agno].extfree = iagno; in diNewExt()
2321 ciagp->inofreeback = cpu_to_le32(iagno); in diNewExt()
2326 imap->im_agctl[agno].inofree = iagno; in diNewExt()
2434 int iagno, i, xlen; in diNewIAG() local
2458 iagno = imap->im_freeiag; in diNewIAG()
2461 blkno = IAGTOLBLK(iagno, sbi->l2nbperpage); in diNewIAG()
2480 iagno = imap->im_nextiag; in diNewIAG()
2485 if (iagno > (MAXIAGS - 1)) { in diNewIAG()
2497 blkno = IAGTOLBLK(iagno, sbi->l2nbperpage); in diNewIAG()
2559 iagp->iagnum = cpu_to_le32(iagno); in diNewIAG()
2596 imap->im_freeiag = iagno; in diNewIAG()
2611 if ((rc = diIAGRead(imap, iagno, &mp))) { in diNewIAG()
2623 *iagnop = iagno; in diNewIAG()
2654 static int diIAGRead(struct inomap * imap, int iagno, struct metapage ** mpp) in diIAGRead() argument
2660 blkno = IAGTOLBLK(iagno, JFS_SBI(ipimap->i_sb)->l2nbperpage); in diIAGRead()
2722 int iagno, ino, extno, bitno; in diUpdatePMap() local
2731 iagno = INOTOIAG(inum); in diUpdatePMap()
2733 if (iagno >= imap->im_nextiag) { in diUpdatePMap()
2739 rc = diIAGRead(imap, iagno, &mp); in diUpdatePMap()