Lines Matching refs:iagno
292 int iagno, ino, extno, rc; in diRead() local
310 iagno = INOTOIAG(ip->i_ino); in diRead()
315 rc = diIAGRead(imap, iagno, &mp); in diRead()
847 int iagno, ino, extno, bitno, sword, agno; in diFree() local
866 iagno = INOTOIAG(inum); in diFree()
871 if (iagno >= imap->im_nextiag) { in diFree()
875 (uint) inum, iagno, imap->im_nextiag); in diFree()
894 if ((rc = diIAGRead(imap, iagno, &mp))) { in diFree()
965 aiagp->inofreeback = cpu_to_le32(iagno); in diFree()
976 imap->im_agctl[agno].inofree = iagno; in diFree()
1127 aiagp->extfreeback = cpu_to_le32(iagno); in diFree()
1132 imap->im_agctl[agno].extfree = iagno; in diFree()
1151 imap->im_freeiag = iagno; in diFree()
1255 iplist[1] = (struct inode *) (size_t)iagno; in diFree()
1292 diInitInode(struct inode *ip, int iagno, int ino, int extno, struct iag * iagp) in diInitInode() argument
1296 ip->i_ino = (iagno << L2INOSPERIAG) + ino; in diInitInode()
1321 int rc, ino, iagno, addext, extno, bitno, sword; in diAlloc() local
1384 iagno = INOTOIAG(inum); in diAlloc()
1385 if ((rc = diIAGRead(imap, iagno, &mp))) { in diAlloc()
1431 diInitInode(ip, iagno, ino, extno, in diAlloc()
1514 diInitInode(ip, iagno, ino, extno, in diAlloc()
1553 diInitInode(ip, iagno, in diAlloc()
1763 int iagno, ino, rc, rem, extno, sword; in diAllocIno() local
1769 if ((iagno = imap->im_agctl[agno].inofree) < 0) in diAllocIno()
1777 if ((rc = diIAGRead(imap, iagno, &mp))) { in diAllocIno()
1846 diInitInode(ip, iagno, ino, extno, iagp); in diAllocIno()
1887 int rem, iagno, sword, extno, rc; in diAllocExt() local
1894 if ((iagno = imap->im_agctl[agno].extfree) < 0) { in diAllocExt()
1898 if ((rc = diNewIAG(imap, &iagno, agno, &mp))) { in diAllocExt()
1911 if ((rc = diIAGRead(imap, iagno, &mp))) { in diAllocExt()
1955 imap->im_freeiag = iagno; in diAllocExt()
1964 diInitInode(ip, iagno, extno << L2INOSPEREXT, extno, iagp); in diAllocExt()
2150 int agno, iagno, fwd, back, freei = 0, sword, rc; in diNewExt() local
2178 iagno = le32_to_cpu(iagp->iagnum); in diNewExt()
2257 ino = (iagno << L2INOSPERIAG) + (extno << L2INOSPEREXT); in diNewExt()
2307 aiagp->extfreeback = cpu_to_le32(iagno); in diNewExt()
2311 imap->im_agctl[agno].extfree = iagno; in diNewExt()
2320 ciagp->inofreeback = cpu_to_le32(iagno); in diNewExt()
2325 imap->im_agctl[agno].inofree = iagno; in diNewExt()
2433 int iagno, i, xlen; in diNewIAG() local
2457 iagno = imap->im_freeiag; in diNewIAG()
2460 blkno = IAGTOLBLK(iagno, sbi->l2nbperpage); in diNewIAG()
2479 iagno = imap->im_nextiag; in diNewIAG()
2484 if (iagno > (MAXIAGS - 1)) { in diNewIAG()
2496 blkno = IAGTOLBLK(iagno, sbi->l2nbperpage); in diNewIAG()
2558 iagp->iagnum = cpu_to_le32(iagno); in diNewIAG()
2595 imap->im_freeiag = iagno; in diNewIAG()
2610 if ((rc = diIAGRead(imap, iagno, &mp))) { in diNewIAG()
2622 *iagnop = iagno; in diNewIAG()
2653 static int diIAGRead(struct inomap * imap, int iagno, struct metapage ** mpp) in diIAGRead() argument
2659 blkno = IAGTOLBLK(iagno, JFS_SBI(ipimap->i_sb)->l2nbperpage); in diIAGRead()
2721 int iagno, ino, extno, bitno; in diUpdatePMap() local
2730 iagno = INOTOIAG(inum); in diUpdatePMap()
2732 if (iagno >= imap->im_nextiag) { in diUpdatePMap()
2738 rc = diIAGRead(imap, iagno, &mp); in diUpdatePMap()