• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/jfs/

Lines Matching refs:header

72 		if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) ||\
73 (le16_to_cpu((P)->header.nextindex) > le16_to_cpu((P)->header.maxentry)) ||\
74 (le16_to_cpu((P)->header.maxentry) > (((BN)==0)?XTROOTMAXSLOT:PSIZE>>L2XTSLOTSIZE)))\
290 (p->header.flag & BT_LEAF) &&
292 le16_to_cpu(p->header.nextindex)) {
308 le16_to_cpu(p->header.nextindex)) {
333 /* (index == p->header.nextindex);
349 if (p->header.nextindex == /* little-endian */
350 p->header.maxentry)
375 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
391 if (p->header.flag & BT_LEAF) {
396 if (p->header.nextindex ==
397 p->header.maxentry)
424 if (index < le16_to_cpu(p->header.nextindex)-1)
441 if (base < le16_to_cpu(p->header.nextindex))
449 if (p->header.flag & BT_LEAF) {
454 if (p->header.nextindex ==
455 p->header.maxentry)
495 if (p->header.nextindex == p->header.maxentry)
607 nextindex = le16_to_cpu(p->header.nextindex);
608 if (nextindex == le16_to_cpu(p->header.maxentry)) {
649 le16_add_cpu(&p->header.nextindex, 1);
659 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
714 if ((sp->header.flag & BT_ROOT) && (!S_ISDIR(ip->i_mode)) &&
715 (le16_to_cpu(sp->header.maxentry) < XTROOTMAXSLOT) &&
717 sp->header.maxentry = cpu_to_le16(XTROOTMAXSLOT);
729 nextindex = le16_to_cpu(sp->header.nextindex);
740 le16_add_cpu(&sp->header.nextindex, 1);
749 le16_to_cpu(sp->header.nextindex) -
792 rc = (sp->header.flag & BT_ROOT) ?
848 nextindex = le16_to_cpu(sp->header.nextindex);
852 if (nextindex == le16_to_cpu(sp->header.maxentry)) {
868 rc = (sp->header.flag & BT_ROOT) ?
909 le16_add_cpu(&sp->header.nextindex, 1);
919 le16_to_cpu(sp->header.nextindex) -
1011 rp->header.self = *pxd;
1012 rp->header.flag = sp->header.flag & BT_TYPE;
1013 rp->header.maxentry = sp->header.maxentry; /* little-endian */
1014 rp->header.nextindex = cpu_to_le16(XTENTRYSTART);
1035 nextbn = le64_to_cpu(sp->header.next);
1036 rp->header.next = cpu_to_le64(nextbn);
1037 rp->header.prev = cpu_to_le64(addressPXD(&sp->header.self));
1038 sp->header.next = cpu_to_le64(rbn);
1055 if (nextbn == 0 && skip == le16_to_cpu(sp->header.maxentry)) {
1066 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
1103 p->header.prev = cpu_to_le64(rbn);
1115 maxentry = le16_to_cpu(sp->header.maxentry);
1137 /* update page header */
1138 sp->header.nextindex = cpu_to_le16(middle + 1);
1144 rp->header.nextindex =
1167 /* update page header */
1168 sp->header.nextindex = cpu_to_le16(middle);
1174 rp->header.nextindex = cpu_to_le16(XTENTRYSTART +
1179 sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) -
1183 rxtlck->lwm.length = le16_to_cpu(rp->header.nextindex) -
1271 rp->header.flag =
1272 (sp->header.flag & BT_LEAF) ? BT_LEAF : BT_INTERNAL;
1273 rp->header.self = *pxd;
1274 rp->header.nextindex = cpu_to_le16(XTENTRYSTART);
1275 rp->header.maxentry = cpu_to_le16(PSIZE >> L2XTSLOTSIZE);
1278 rp->header.next = 0;
1279 rp->header.prev = 0;
1284 nextindex = le16_to_cpu(sp->header.maxentry);
1301 /* update page header */
1302 rp->header.nextindex = cpu_to_le16(nextindex + 1);
1308 xtlck->lwm.length = le16_to_cpu(rp->header.nextindex) -
1329 /* update page header of root */
1330 sp->header.flag &= ~BT_LEAF;
1331 sp->header.flag |= BT_INTERNAL;
1333 sp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1);
1422 nextindex = le16_to_cpu(p->header.nextindex);
1430 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1451 if (p->header.flag & BT_INTERNAL) {
1452 ASSERT(p->header.nextindex ==
1479 le16_add_cpu(&p->header.nextindex, 1);
1499 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
1560 nextindex = le16_to_cpu(p->header.nextindex);
1596 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1617 if (p->header.flag & BT_INTERNAL) {
1618 ASSERT(p->header.nextindex ==
1645 le16_add_cpu(&p->header.nextindex, 1);
1681 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
1767 nextindex = le16_to_cpu(p->header.nextindex);
1832 p->header.nextindex =
1833 cpu_to_le16(le16_to_cpu(p->header.nextindex) -
1838 nextindex = le16_to_cpu(p->header.nextindex);
1899 p->header.nextindex =
1900 cpu_to_le16(le16_to_cpu(p->header.nextindex) -
1928 if (nextindex == le16_to_cpu(p->header.maxentry)) {
1950 if (p->header.flag & BT_INTERNAL) {
1951 ASSERT(p->header.nextindex ==
1970 (le16_to_cpu(p->header.maxentry) >> 1)) {
1973 le16_to_cpu(p->header.nextindex) +
1990 p->header.nextindex =
1991 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1);
2011 le16_to_cpu(p->header.nextindex) -
2015 bn = le64_to_cpu(p->header.next);
2034 nextindex = le16_to_cpu(p->header.nextindex);
2040 if (nextindex == le16_to_cpu(p->header.maxentry)) {
2080 if (nextindex == le16_to_cpu(p->header.maxentry)) {
2105 if (p->header.flag & BT_INTERNAL) {
2106 ASSERT(p->header.nextindex ==
2134 p->header.nextindex =
2135 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1);
2142 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
2230 nextindex = le16_to_cpu(p->header.nextindex);
2231 if (nextindex < le16_to_cpu(p->header.maxentry))
2306 le16_add_cpu(&p->header.nextindex, 1);
2310 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) -
2368 nextindex = le16_to_cpu(p->header.nextindex);
2369 le16_add_cpu(&p->header.nextindex, -1);
2374 if (p->header.nextindex == cpu_to_le16(XTENTRYSTART))
2427 if (fp->header.flag & BT_ROOT) {
2429 fp->header.flag &= ~BT_INTERNAL;
2430 fp->header.flag |= BT_LEAF;
2431 fp->header.nextindex = cpu_to_le16(XTENTRYSTART);
2446 xaddr = addressPXD(&fp->header.self);
2447 xlen = lengthPXD(&fp->header.self);
2472 nextindex = le16_to_cpu(p->header.nextindex);
2479 if (p->header.flag & BT_ROOT) {
2481 p->header.flag &= ~BT_INTERNAL;
2482 p->header.flag |= BT_LEAF;
2483 p->header.nextindex =
2494 xaddr = addressPXD(&p->header.self);
2532 le16_add_cpu(&p->header.nextindex, -1);
2730 if (p->header.next) {
2731 nextbn = le64_to_cpu(p->header.next);
2741 if (p->header.prev) {
2742 prevbn = le64_to_cpu(p->header.prev);
2761 lp->header.next = cpu_to_le64(nxaddr);
2768 rp->header.prev = cpu_to_le64(nxaddr);
2798 /* update the self address in the xtpage header */
2799 pxd = &p->header.self;
2804 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset;
2864 xtlck->lwm.length = le16_to_cpu(pp->header.nextindex) -
2933 if (p->header.flag & BT_LEAF) {
2938 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
3019 nextbn = le64_to_cpu(p->header.next);
3020 prevbn = le64_to_cpu(p->header.prev);
3038 p->header.prev = cpu_to_le64(prevbn);
3059 p->header.next = le64_to_cpu(nextbn);
3087 p->header.flag = DXD_INDEX | BT_ROOT | BT_LEAF;
3088 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
3091 p->header.maxentry = cpu_to_le16(XTROOTINITSLOT_DIR);
3093 p->header.maxentry = cpu_to_le16(XTROOTINITSLOT);
3251 index = le16_to_cpu(p->header.nextindex) - 1;
3258 if (p->header.next) {
3261 * Make sure this change to the header is logged.
3267 p->header.next = 0;
3270 if (p->header.flag & BT_INTERNAL)
3301 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1;
3406 if (nextindex < le16_to_cpu(p->header.nextindex)) {
3410 le16_to_cpu(p->header.nextindex) -
3415 p->header.nextindex = cpu_to_le16(nextindex);
3441 le16_to_cpu(p->header.nextindex) - XTENTRYSTART;
3445 if (p->header.flag & BT_ROOT) {
3446 p->header.flag &= ~BT_INTERNAL;
3447 p->header.flag |= BT_LEAF;
3448 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
3495 if (index < le16_to_cpu(p->header.nextindex) - 1) {
3505 le16_to_cpu(p->header.
3515 le16_to_cpu(p->header.nextindex) -
3522 p->header.nextindex = cpu_to_le16(index + 1);
3580 le16_to_cpu(p->header.nextindex) - 1;
3587 le16_to_cpu(p->header.nextindex) -
3594 if (p->header.flag & BT_ROOT) {
3595 p->header.flag &= ~BT_INTERNAL;
3596 p->header.flag |= BT_LEAF;
3597 p->header.nextindex = cpu_to_le16(XTENTRYSTART);
3598 if (le16_to_cpu(p->header.maxentry) == XTROOTMAXSLOT) {
3603 p->header.maxentry =
3775 index = le16_to_cpu(p->header.nextindex) - 1;
3777 if (p->header.flag & BT_INTERNAL)
3831 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1;
3836 if (p->header.flag & BT_ROOT) {