Lines Matching defs:laarr

706 	struct kernel_long_ad laarr[EXTENT_MERGE_SIZE];
729 alternate between laarr[0] and laarr[1] for locations of the
757 laarr[c].extLength = (etype << 30) | elen;
758 laarr[c].extLocation = eloc;
802 laarr[0] = laarr[1];
806 memset(&laarr[0].extLocation, 0x00,
808 laarr[0].extLength = EXT_NOT_RECORDED_NOT_ALLOCATED;
815 ret = udf_do_extend_file(inode, &prev_epos, laarr, hole_len);
827 laarr[c].extLength = EXT_NOT_RECORDED_NOT_ALLOCATED |
829 memset(&laarr[c].extLocation, 0x00,
841 laarr[2] = laarr[0];
842 laarr[0] = laarr[1];
843 laarr[1] = laarr[2];
851 laarr[c + 1].extLength = (etype << 30) | elen;
852 laarr[c + 1].extLocation = eloc;
862 if ((laarr[c].extLength >> 30) == (EXT_NOT_RECORDED_ALLOCATED >> 30))
863 newblocknum = laarr[c].extLocation.logicalBlockNum + offset;
886 udf_split_extents(inode, &c, offset, newblocknum, laarr, &endnum);
889 udf_prealloc_extents(inode, c, lastblock, laarr, &endnum);
891 /* merge any continuous blocks in laarr */
892 udf_merge_extents(inode, laarr, &endnum);
897 ret = udf_update_extents(inode, laarr, startnum, endnum, &prev_epos);
926 struct kernel_long_ad *laarr, int *endnum)
931 if ((laarr[*c].extLength >> 30) == (EXT_NOT_RECORDED_ALLOCATED >> 30) ||
932 (laarr[*c].extLength >> 30) ==
935 int blen = ((laarr[curr].extLength & UDF_EXTENT_LENGTH_MASK) +
937 int8_t etype = (laarr[curr].extLength >> 30);
942 laarr[curr + 2] = laarr[curr + 1];
943 laarr[curr + 1] = laarr[curr];
945 laarr[curr + 3] = laarr[curr + 1];
946 laarr[curr + 2] = laarr[curr + 1] = laarr[curr];
952 &laarr[curr].extLocation,
954 laarr[curr].extLength =
957 laarr[curr].extLocation.logicalBlockNum = 0;
958 laarr[curr].extLocation.
961 laarr[curr].extLength = (etype << 30) |
968 laarr[curr].extLocation.logicalBlockNum = newblocknum;
970 laarr[curr].extLocation.partitionReferenceNum =
972 laarr[curr].extLength = EXT_RECORDED_ALLOCATED |
978 laarr[curr].extLocation.logicalBlockNum +=
980 laarr[curr].extLength = (etype << 30) |
989 struct kernel_long_ad *laarr,
1000 if ((laarr[c + 1].extLength >> 30) ==
1004 (((laarr[c + 1].extLength &
1016 } else if ((laarr[i].extLength >> 30) ==
1018 length += (((laarr[i].extLength &
1027 int next = laarr[start].extLocation.logicalBlockNum +
1028 (((laarr[start].extLength & UDF_EXTENT_LENGTH_MASK) +
1032 laarr[start].extLocation.partitionReferenceNum,
1038 laarr[start].extLength +=
1042 memmove(&laarr[c + 2], &laarr[c + 1],
1045 laarr[c + 1].extLocation.logicalBlockNum = next;
1046 laarr[c + 1].extLocation.partitionReferenceNum =
1047 laarr[c].extLocation.
1049 laarr[c + 1].extLength =
1057 int elen = ((laarr[i].extLength &
1063 laarr[i].extLength -=
1070 memmove(&laarr[i],
1071 &laarr[i + 1],
1084 static void udf_merge_extents(struct inode *inode, struct kernel_long_ad *laarr,
1092 struct kernel_long_ad *li /*l[i]*/ = &laarr[i];
1093 struct kernel_long_ad *lip1 /*l[i plus 1]*/ = &laarr[i + 1];
1111 memmove(&laarr[i + 1], &laarr[i + 2],
1146 memmove(&laarr[i + 1], &laarr[i + 2],
1168 static int udf_update_extents(struct inode *inode, struct kernel_long_ad *laarr,
1183 laarr[i].extLocation,
1184 laarr[i].extLength);
1192 udf_next_aext(inode, epos, &laarr[i].extLocation,
1193 &laarr[i].extLength, 1);
1200 udf_write_aext(inode, epos, &laarr[i].extLocation,
1201 laarr[i].extLength, 1);