Lines Matching refs:extLength
488 int count = 0, fake = !(last_ext->extLength & UDF_EXTENT_LENGTH_MASK); in udf_do_extend_file()
502 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file()
503 last_ext->extLength = in udf_do_extend_file()
504 (last_ext->extLength & UDF_EXTENT_FLAG_MASK) | in udf_do_extend_file()
505 (((last_ext->extLength & UDF_EXTENT_LENGTH_MASK) + in udf_do_extend_file()
513 if ((last_ext->extLength & UDF_EXTENT_FLAG_MASK) == in udf_do_extend_file()
517 prealloc_len = last_ext->extLength; in udf_do_extend_file()
519 last_ext->extLength = EXT_NOT_RECORDED_NOT_ALLOCATED | in udf_do_extend_file()
520 (last_ext->extLength & UDF_EXTENT_LENGTH_MASK); in udf_do_extend_file()
526 if ((last_ext->extLength & UDF_EXTENT_FLAG_MASK) == in udf_do_extend_file()
529 (last_ext->extLength & UDF_EXTENT_LENGTH_MASK); in udf_do_extend_file()
533 last_ext->extLength += add; in udf_do_extend_file()
538 last_ext->extLength, 1); in udf_do_extend_file()
545 last_ext->extLength, 1); in udf_do_extend_file()
564 last_ext->extLength = EXT_NOT_RECORDED_NOT_ALLOCATED | add; in udf_do_extend_file()
570 last_ext->extLength, 1); in udf_do_extend_file()
576 last_ext->extLength = EXT_NOT_RECORDED_NOT_ALLOCATED | in udf_do_extend_file()
579 last_ext->extLength, 1); in udf_do_extend_file()
593 last_ext->extLength = prealloc_len; in udf_do_extend_file()
618 (last_ext->extLength & (sb->s_blocksize - 1)); in udf_do_extend_final_block()
619 last_ext->extLength += added_bytes; in udf_do_extend_final_block()
623 last_ext->extLength, 1); in udf_do_extend_final_block()
658 extent.extLength = EXT_NOT_RECORDED_NOT_ALLOCATED; in udf_extend_file()
662 &extent.extLength, 0); in udf_extend_file()
663 extent.extLength |= etype << 30; in udf_extend_file()
745 laarr[c].extLength = (etype << 30) | elen; in inode_getblk()
792 laarr[0].extLength = EXT_NOT_RECORDED_NOT_ALLOCATED; in inode_getblk()
809 if ((laarr[0].extLength & UDF_EXTENT_FLAG_MASK) != in inode_getblk()
815 laarr[c].extLength = EXT_NOT_RECORDED_NOT_ALLOCATED | in inode_getblk()
840 laarr[c + 1].extLength = (etype << 30) | elen; in inode_getblk()
851 if ((laarr[c].extLength >> 30) == (EXT_NOT_RECORDED_ALLOCATED >> 30)) in inode_getblk()
924 if ((laarr[*c].extLength >> 30) == (EXT_NOT_RECORDED_ALLOCATED >> 30) || in udf_split_extents()
925 (laarr[*c].extLength >> 30) == in udf_split_extents()
928 int blen = ((laarr[curr].extLength & UDF_EXTENT_LENGTH_MASK) + in udf_split_extents()
930 int8_t etype = (laarr[curr].extLength >> 30); in udf_split_extents()
947 laarr[curr].extLength = in udf_split_extents()
954 laarr[curr].extLength = (etype << 30) | in udf_split_extents()
965 laarr[curr].extLength = EXT_RECORDED_ALLOCATED | in udf_split_extents()
973 laarr[curr].extLength = (etype << 30) | in udf_split_extents()
993 if ((laarr[c + 1].extLength >> 30) == in udf_prealloc_extents()
997 (((laarr[c + 1].extLength & in udf_prealloc_extents()
1009 } else if ((laarr[i].extLength >> 30) == in udf_prealloc_extents()
1011 length += (((laarr[i].extLength & in udf_prealloc_extents()
1021 (((laarr[start].extLength & UDF_EXTENT_LENGTH_MASK) + in udf_prealloc_extents()
1031 laarr[start].extLength += in udf_prealloc_extents()
1042 laarr[c + 1].extLength = in udf_prealloc_extents()
1050 int elen = ((laarr[i].extLength & in udf_prealloc_extents()
1056 laarr[i].extLength -= in udf_prealloc_extents()
1088 if (((li->extLength >> 30) == (lip1->extLength >> 30)) && in udf_merge_extents()
1089 (((li->extLength >> 30) == in udf_merge_extents()
1093 (((li->extLength & UDF_EXTENT_LENGTH_MASK) + in udf_merge_extents()
1096 if (((li->extLength & UDF_EXTENT_LENGTH_MASK) + in udf_merge_extents()
1097 (lip1->extLength & UDF_EXTENT_LENGTH_MASK) + in udf_merge_extents()
1099 lip1->extLength = (lip1->extLength - in udf_merge_extents()
1100 (li->extLength & in udf_merge_extents()
1104 li->extLength = (li->extLength & in udf_merge_extents()
1110 ((li->extLength & in udf_merge_extents()
1114 li->extLength = lip1->extLength + in udf_merge_extents()
1115 (((li->extLength & in udf_merge_extents()
1125 } else if (((li->extLength >> 30) == in udf_merge_extents()
1127 ((lip1->extLength >> 30) == in udf_merge_extents()
1130 ((li->extLength & in udf_merge_extents()
1136 if (((li->extLength & UDF_EXTENT_LENGTH_MASK) + in udf_merge_extents()
1137 (lip1->extLength & UDF_EXTENT_LENGTH_MASK) + in udf_merge_extents()
1139 lip1->extLength = (lip1->extLength - in udf_merge_extents()
1140 (li->extLength & in udf_merge_extents()
1144 li->extLength = (li->extLength & in udf_merge_extents()
1149 li->extLength = lip1->extLength + in udf_merge_extents()
1150 (((li->extLength & in udf_merge_extents()
1160 } else if ((li->extLength >> 30) == in udf_merge_extents()
1164 ((li->extLength & in udf_merge_extents()
1169 li->extLength = (li->extLength & in udf_merge_extents()
1190 laarr[i].extLength); in udf_update_extents()
1192 &laarr[i].extLength, 1); in udf_update_extents()
1200 laarr[i].extLength, 1); in udf_update_extents()
1370 if (ie->indirectICB.extLength) { in udf_read_inode()
1516 iinfo->i_streamdir = (efe->streamDirectoryICB.extLength != 0); in udf_read_inode()
1809 icb_lad->extLength = in udf_update_inode()
2102 sad->extLength = cpu_to_le32(elen); in udf_write_aext()
2108 lad->extLength = cpu_to_le32(elen); in udf_write_aext()
2204 etype = le32_to_cpu(sad->extLength) >> 30; in udf_current_aext()
2208 *elen = le32_to_cpu(sad->extLength) & UDF_EXTENT_LENGTH_MASK; in udf_current_aext()
2214 etype = le32_to_cpu(lad->extLength) >> 30; in udf_current_aext()
2216 *elen = le32_to_cpu(lad->extLength) & UDF_EXTENT_LENGTH_MASK; in udf_current_aext()