Lines Matching refs:extno
328 int iagno, ino, extno, rc; in diRead() local
362 extno = ino >> L2INOSPEREXT; in diRead()
364 if ((lengthPXD(&iagp->inoext[extno]) != imap->im_nbperiext) || in diRead()
365 (addressPXD(&iagp->inoext[extno]) == 0)) { in diRead()
373 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); in diRead()
901 int iagno, ino, extno, bitno, sword, agno; in diFree() local
959 extno = ino >> L2INOSPEREXT; in diFree()
963 if (!(le32_to_cpu(iagp->wmap[extno]) & mask)) { in diFree()
968 if (!addressPXD(&iagp->inoext[extno])) { in diFree()
978 bitmap = le32_to_cpu(iagp->wmap[extno]) & ~mask; in diFree()
1040 if (iagp->wmap[extno] == ONES) { in diFree()
1041 sword = extno >> L2EXTSPERSUM; in diFree()
1042 bitno = extno & (EXTSPERSUM - 1); in diFree()
1049 iagp->wmap[extno] = cpu_to_le32(bitmap); in diFree()
1173 freepxd = iagp->inoext[extno]; in diFree()
1234 if (iagp->pmap[extno] != 0) { in diFree()
1237 iagp->wmap[extno] = 0; in diFree()
1239 PXDlength(&iagp->inoext[extno], 0); in diFree()
1240 PXDaddress(&iagp->inoext[extno], 0); in diFree()
1247 sword = extno >> L2EXTSPERSUM; in diFree()
1248 bitno = extno & (EXTSPERSUM - 1); in diFree()
1315 iplist[2] = (struct inode *) (size_t)extno; in diFree()
1351 diInitInode(struct inode *ip, int iagno, int ino, int extno, struct iag * iagp) in diInitInode() argument
1358 jfs_ip->ixpxd = iagp->inoext[extno]; in diInitInode()
1382 int rc, ino, iagno, addext, extno, bitno, sword; in diAlloc() local
1468 extno = ino >> L2INOSPEREXT; in diAlloc()
1473 if (addressPXD(&iagp->inoext[extno])) { in diAlloc()
1476 diFindFree(le32_to_cpu(iagp->wmap[extno]), in diAlloc()
1479 ino = (extno << L2INOSPEREXT) + bitno; in diAlloc()
1492 diInitInode(ip, iagno, ino, extno, in diAlloc()
1505 extno = in diAlloc()
1506 (extno == in diAlloc()
1507 EXTSPERIAG - 1) ? 0 : extno + 1; in diAlloc()
1526 bitno = extno & (EXTSPERSUM - 1); in diAlloc()
1528 sword = extno >> L2EXTSPERSUM; in diAlloc()
1550 extno = (sword << L2EXTSPERSUM) + rem; in diAlloc()
1551 rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), in diAlloc()
1567 ino = (extno << L2INOSPEREXT) + rem; in diAlloc()
1576 diInitInode(ip, iagno, ino, extno, in diAlloc()
1598 extno = (sword << L2EXTSPERSUM) + rem; in diAlloc()
1602 if ((rc = diNewExt(imap, iagp, extno))) { in diAlloc()
1616 extno << L2INOSPEREXT, in diAlloc()
1617 extno, iagp); in diAlloc()
1825 int iagno, ino, rc, rem, extno, sword; in diAllocIno() local
1882 extno = (sword << L2EXTSPERSUM) + rem; in diAllocIno()
1886 rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), 0); in diAllocIno()
1896 ino = (extno << L2INOSPEREXT) + rem; in diAllocIno()
1909 diInitInode(ip, iagno, ino, extno, iagp); in diAllocIno()
1950 int rem, iagno, sword, extno, rc; in diAllocExt() local
2005 extno = (sword << L2EXTSPERSUM) + rem; in diAllocExt()
2009 rc = diNewExt(imap, iagp, extno); in diAllocExt()
2028 diInitInode(ip, iagno, extno << L2INOSPEREXT, extno, iagp); in diAllocExt()
2068 int extno, bitno, agno, sword, rc; in diAllocBit() local
2106 extno = ino >> L2INOSPEREXT; in diAllocBit()
2115 if (((le32_to_cpu(iagp->pmap[extno]) & mask) != 0) || in diAllocBit()
2116 ((le32_to_cpu(iagp->wmap[extno]) & mask) != 0) || in diAllocBit()
2117 (addressPXD(&iagp->inoext[extno]) == 0)) { in diAllocBit()
2130 iagp->wmap[extno] |= cpu_to_le32(mask); in diAllocBit()
2136 if (iagp->wmap[extno] == ONES) { in diAllocBit()
2137 sword = extno >> L2EXTSPERSUM; in diAllocBit()
2138 bitno = extno & (EXTSPERSUM - 1); in diAllocBit()
2215 static int diNewExt(struct inomap * imap, struct iag * iagp, int extno) in diNewExt() argument
2312 if ((extno == 0) || (addressPXD(&iagp->inoext[extno - 1]) == 0)) in diNewExt()
2315 hint = addressPXD(&iagp->inoext[extno - 1]) + in diNewExt()
2316 lengthPXD(&iagp->inoext[extno - 1]) - 1; in diNewExt()
2324 ino = (iagno << L2INOSPERIAG) + (extno << L2INOSPEREXT); in diNewExt()
2396 PXDlength(&iagp->inoext[extno], imap->im_nbperiext); in diNewExt()
2397 PXDaddress(&iagp->inoext[extno], blkno); in diNewExt()
2403 iagp->wmap[extno] = cpu_to_le32(HIGHORDER); in diNewExt()
2404 iagp->pmap[extno] = 0; in diNewExt()
2410 sword = extno >> L2EXTSPERSUM; in diNewExt()
2411 mask = HIGHORDER >> (extno & (EXTSPERSUM - 1)); in diNewExt()
2800 int iagno, ino, extno, bitno; in diUpdatePMap() local
2826 extno = ino >> L2INOSPEREXT; in diUpdatePMap()
2838 if (!(le32_to_cpu(iagp->wmap[extno]) & mask)) { in diUpdatePMap()
2843 if (!(le32_to_cpu(iagp->pmap[extno]) & mask)) { in diUpdatePMap()
2849 iagp->pmap[extno] &= cpu_to_le32(~mask); in diUpdatePMap()
2858 if (!(le32_to_cpu(iagp->wmap[extno]) & mask)) { in diUpdatePMap()
2865 if ((le32_to_cpu(iagp->pmap[extno]) & mask) != 0) { in diUpdatePMap()
2873 iagp->pmap[extno] |= cpu_to_le32(mask); in diUpdatePMap()