Lines Matching refs:extno
293 int iagno, ino, extno, rc; in diRead() local
327 extno = ino >> L2INOSPEREXT; in diRead()
329 if ((lengthPXD(&iagp->inoext[extno]) != imap->im_nbperiext) || in diRead()
330 (addressPXD(&iagp->inoext[extno]) == 0)) { in diRead()
338 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); in diRead()
848 int iagno, ino, extno, bitno, sword, agno; in diFree() local
906 extno = ino >> L2INOSPEREXT; in diFree()
910 if (!(le32_to_cpu(iagp->wmap[extno]) & mask)) { in diFree()
914 if (!addressPXD(&iagp->inoext[extno])) { in diFree()
924 bitmap = le32_to_cpu(iagp->wmap[extno]) & ~mask; in diFree()
986 if (iagp->wmap[extno] == cpu_to_le32(ONES)) { in diFree()
987 sword = extno >> L2EXTSPERSUM; in diFree()
988 bitno = extno & (EXTSPERSUM - 1); in diFree()
995 iagp->wmap[extno] = cpu_to_le32(bitmap); in diFree()
1117 freepxd = iagp->inoext[extno]; in diFree()
1178 if (iagp->pmap[extno] != 0) { in diFree()
1181 iagp->wmap[extno] = 0; in diFree()
1182 PXDlength(&iagp->inoext[extno], 0); in diFree()
1183 PXDaddress(&iagp->inoext[extno], 0); in diFree()
1190 sword = extno >> L2EXTSPERSUM; in diFree()
1191 bitno = extno & (EXTSPERSUM - 1); in diFree()
1257 iplist[2] = (struct inode *) (size_t)extno; in diFree()
1293 diInitInode(struct inode *ip, int iagno, int ino, int extno, struct iag * iagp) in diInitInode() argument
1298 jfs_ip->ixpxd = iagp->inoext[extno]; in diInitInode()
1322 int rc, ino, iagno, addext, extno, bitno, sword; in diAlloc() local
1408 extno = ino >> L2INOSPEREXT; in diAlloc()
1413 if (addressPXD(&iagp->inoext[extno])) { in diAlloc()
1416 diFindFree(le32_to_cpu(iagp->wmap[extno]), in diAlloc()
1419 ino = (extno << L2INOSPEREXT) + bitno; in diAlloc()
1432 diInitInode(ip, iagno, ino, extno, in diAlloc()
1445 extno = in diAlloc()
1446 (extno == in diAlloc()
1447 EXTSPERIAG - 1) ? 0 : extno + 1; in diAlloc()
1466 bitno = extno & (EXTSPERSUM - 1); in diAlloc()
1468 sword = extno >> L2EXTSPERSUM; in diAlloc()
1490 extno = (sword << L2EXTSPERSUM) + rem; in diAlloc()
1491 rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), in diAlloc()
1506 ino = (extno << L2INOSPEREXT) + rem; in diAlloc()
1515 diInitInode(ip, iagno, ino, extno, in diAlloc()
1537 extno = (sword << L2EXTSPERSUM) + rem; in diAlloc()
1541 if ((rc = diNewExt(imap, iagp, extno))) { in diAlloc()
1555 extno << L2INOSPEREXT, in diAlloc()
1556 extno, iagp); in diAlloc()
1764 int iagno, ino, rc, rem, extno, sword; in diAllocIno() local
1820 extno = (sword << L2EXTSPERSUM) + rem; in diAllocIno()
1824 rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), 0); in diAllocIno()
1834 ino = (extno << L2INOSPEREXT) + rem; in diAllocIno()
1847 diInitInode(ip, iagno, ino, extno, iagp); in diAllocIno()
1888 int rem, iagno, sword, extno, rc; in diAllocExt() local
1942 extno = (sword << L2EXTSPERSUM) + rem; in diAllocExt()
1946 rc = diNewExt(imap, iagp, extno); in diAllocExt()
1965 diInitInode(ip, iagno, extno << L2INOSPEREXT, extno, iagp); in diAllocExt()
2005 int extno, bitno, agno, sword, rc; in diAllocBit() local
2041 extno = ino >> L2INOSPEREXT; in diAllocBit()
2050 if (((le32_to_cpu(iagp->pmap[extno]) & mask) != 0) || in diAllocBit()
2051 ((le32_to_cpu(iagp->wmap[extno]) & mask) != 0) || in diAllocBit()
2052 (addressPXD(&iagp->inoext[extno]) == 0)) { in diAllocBit()
2064 iagp->wmap[extno] |= cpu_to_le32(mask); in diAllocBit()
2070 if (iagp->wmap[extno] == cpu_to_le32(ONES)) { in diAllocBit()
2071 sword = extno >> L2EXTSPERSUM; in diAllocBit()
2072 bitno = extno & (EXTSPERSUM - 1); in diAllocBit()
2149 static int diNewExt(struct inomap * imap, struct iag * iagp, int extno) in diNewExt() argument
2246 if ((extno == 0) || (addressPXD(&iagp->inoext[extno - 1]) == 0)) in diNewExt()
2249 hint = addressPXD(&iagp->inoext[extno - 1]) + in diNewExt()
2250 lengthPXD(&iagp->inoext[extno - 1]) - 1; in diNewExt()
2258 ino = (iagno << L2INOSPERIAG) + (extno << L2INOSPEREXT); in diNewExt()
2330 PXDlength(&iagp->inoext[extno], imap->im_nbperiext); in diNewExt()
2331 PXDaddress(&iagp->inoext[extno], blkno); in diNewExt()
2337 iagp->wmap[extno] = cpu_to_le32(HIGHORDER); in diNewExt()
2338 iagp->pmap[extno] = 0; in diNewExt()
2344 sword = extno >> L2EXTSPERSUM; in diNewExt()
2345 mask = HIGHORDER >> (extno & (EXTSPERSUM - 1)); in diNewExt()
2722 int iagno, ino, extno, bitno; in diUpdatePMap() local
2749 extno = ino >> L2INOSPEREXT; in diUpdatePMap()
2761 if (!(le32_to_cpu(iagp->wmap[extno]) & mask)) { in diUpdatePMap()
2766 if (!(le32_to_cpu(iagp->pmap[extno]) & mask)) { in diUpdatePMap()
2772 iagp->pmap[extno] &= cpu_to_le32(~mask); in diUpdatePMap()
2781 if (!(le32_to_cpu(iagp->wmap[extno]) & mask)) { in diUpdatePMap()
2787 if ((le32_to_cpu(iagp->pmap[extno]) & mask) != 0) { in diUpdatePMap()
2794 iagp->pmap[extno] |= cpu_to_le32(mask); in diUpdatePMap()