Lines Matching refs:jfs

25 #include "jfs.h"
47 static struct jfs_info jfs;
71 jfs.xindex = 2;
73 jfs.xad = &xtp->xad[2];
75 jfs.xlastindex = xtp->header.nextindex;
78 devread (addressXAD (jfs.xad) << jfs.bdlog, 0,
80 jfs.xad = &xtpage->xad[2];
82 jfs.xlastindex = xtpage->header.nextindex;
85 return jfs.xad;
91 if (++jfs.xindex < jfs.xlastindex) {
93 devread (xtpage->header.next << jfs.bdlog, 0,
95 jfs.xlastindex = xtpage->header.nextindex;
96 jfs.xindex = XTENTRYSTART;
97 jfs.xad = &xtpage->xad[XTENTRYSTART];
101 return ++jfs.xad;
114 key = (((inum >> L2INOSPERIAG) << L2INOSPERIAG) + 4096) >> jfs.l2bsize;
121 devread ((addressXAD (xad) + key - offset) << jfs.bdlog,
123 devread (addressPXD (&pxd) << jfs.bdlog,
136 if (jfs.dttype == DTTYPE_INLINE) {
137 if (jfs.sindex < jfs.slastindex) {
138 return (ldtentry_t *)&dtroot->slot[(int)dtroot->header.stbl[jfs.sindex++]];
143 if (jfs.sindex < jfs.slastindex) {
144 return &de[(int)stbl[jfs.sindex++]];
146 devread (dtpage->header.next << jfs.bdlog, 0,
148 jfs.slastindex = dtpage->header.nextindex;
149 jfs.sindex = 1;
154 return (jfs.de_index < 2) ? &de_always[jfs.de_index++] : NULL;
165 jfs.sindex = 0;
166 jfs.de_index = 0;
171 jfs.dttype = DTTYPE_INLINE;
172 jfs.slastindex = dtr->header.nextindex;
175 jfs.dttype = DTTYPE_PAGE;
178 devread (addressPXD (xd) << jfs.bdlog, 0,
184 jfs.slastindex = dtpage->header.nextindex;
194 return (jfs.dttype == DTTYPE_INLINE)
220 jfs.bsize = super.s_bsize;
221 jfs.l2bsize = super.s_l2bsize;
222 jfs.bdlog = jfs.l2bsize - SECTOR_BITS;
242 if (isinxt (filepos >> jfs.l2bsize, offset, xadlen)) {
243 endofcur = (offset + xadlen) << jfs.l2bsize;
248 devread (addressXAD (xad) << jfs.bdlog,
249 filepos - (offset << jfs.l2bsize), toread, buf);
256 toread = ((offset << jfs.l2bsize) >= endpos)
257 ? len : ((offset - endofprev) << jfs.l2bsize);