Lines Matching defs:laarr
471 struct kernel_long_ad laarr[EXTENT_MERGE_SIZE];
492 alternate between laarr[0] and laarr[1] for locations of the
520 laarr[c].extLength = (etype << 30) | elen;
521 laarr[c].extLocation = eloc;
565 laarr[0] = laarr[1];
569 memset(&laarr[0].extLocation, 0x00,
571 laarr[0].extLength = EXT_NOT_RECORDED_NOT_ALLOCATED;
577 ret = udf_extend_file(inode, &prev_epos, laarr, offset);
591 if ((laarr[0].extLength & UDF_EXTENT_FLAG_MASK) !=
597 laarr[c].extLength = EXT_NOT_RECORDED_NOT_ALLOCATED |
599 memset(&laarr[c].extLocation, 0x00,
612 laarr[2] = laarr[0];
613 laarr[0] = laarr[1];
614 laarr[1] = laarr[2];
622 laarr[c + 1].extLength = (etype << 30) | elen;
623 laarr[c + 1].extLocation = eloc;
633 if ((laarr[c].extLength >> 30) == (EXT_NOT_RECORDED_ALLOCATED >> 30))
634 newblocknum = laarr[c].extLocation.logicalBlockNum + offset;
659 udf_split_extents(inode, &c, offset, newblocknum, laarr, &endnum);
667 udf_prealloc_extents(inode, c, lastblock, laarr, &endnum);
670 /* merge any continuous blocks in laarr */
671 udf_merge_extents(inode, laarr, &endnum);
676 udf_update_extents(inode, laarr, startnum, endnum, &prev_epos);
701 struct kernel_long_ad laarr[EXTENT_MERGE_SIZE],
707 if ((laarr[*c].extLength >> 30) == (EXT_NOT_RECORDED_ALLOCATED >> 30) ||
708 (laarr[*c].extLength >> 30) ==
711 int blen = ((laarr[curr].extLength & UDF_EXTENT_LENGTH_MASK) +
713 int8_t etype = (laarr[curr].extLength >> 30);
718 laarr[curr + 2] = laarr[curr + 1];
719 laarr[curr + 1] = laarr[curr];
721 laarr[curr + 3] = laarr[curr + 1];
722 laarr[curr + 2] = laarr[curr + 1] = laarr[curr];
728 &laarr[curr].extLocation,
730 laarr[curr].extLength =
733 laarr[curr].extLocation.logicalBlockNum = 0;
734 laarr[curr].extLocation.
737 laarr[curr].extLength = (etype << 30) |
744 laarr[curr].extLocation.logicalBlockNum = newblocknum;
746 laarr[curr].extLocation.partitionReferenceNum =
748 laarr[curr].extLength = EXT_RECORDED_ALLOCATED |
754 laarr[curr].extLocation.logicalBlockNum +=
756 laarr[curr].extLength = (etype << 30) |
765 struct kernel_long_ad laarr[EXTENT_MERGE_SIZE],
776 if ((laarr[c + 1].extLength >> 30) ==
780 (((laarr[c + 1].extLength &
792 } else if ((laarr[i].extLength >> 30) ==
794 length += (((laarr[i].extLength &
803 int next = laarr[start].extLocation.logicalBlockNum +
804 (((laarr[start].extLength & UDF_EXTENT_LENGTH_MASK) +
808 laarr[start].extLocation.partitionReferenceNum,
814 laarr[start].extLength +=
818 memmove(&laarr[c + 2], &laarr[c + 1],
821 laarr[c + 1].extLocation.logicalBlockNum = next;
822 laarr[c + 1].extLocation.partitionReferenceNum =
823 laarr[c].extLocation.
825 laarr[c + 1].extLength =
833 int elen = ((laarr[i].extLength &
839 laarr[i].extLength -=
846 memmove(&laarr[i],
847 &laarr[i + 1],
861 struct kernel_long_ad laarr[EXTENT_MERGE_SIZE],
869 struct kernel_long_ad *li /*l[i]*/ = &laarr[i];
870 struct kernel_long_ad *lip1 /*l[i plus 1]*/ = &laarr[i + 1];
903 memmove(&laarr[i + 1], &laarr[i + 2],
938 memmove(&laarr[i + 1], &laarr[i + 2],
961 struct kernel_long_ad laarr[EXTENT_MERGE_SIZE],
971 udf_delete_aext(inode, *epos, laarr[i].extLocation,
972 laarr[i].extLength);
975 udf_insert_aext(inode, *epos, laarr[i].extLocation,
976 laarr[i].extLength);
977 udf_next_aext(inode, epos, &laarr[i].extLocation,
978 &laarr[i].extLength, 1);
985 udf_write_aext(inode, epos, &laarr[i].extLocation,
986 laarr[i].extLength, 1);