Lines Matching refs:a
555 ATTR_RECORD *a; in ntfs_read_locked_inode() local
662 a = ctx->attr; in ntfs_read_locked_inode()
664 si = (STANDARD_INFORMATION*)((u8*)a + in ntfs_read_locked_inode()
665 le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_inode()
704 a = ctx->attr; in ntfs_read_locked_inode()
705 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
710 if (a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_locked_inode()
711 a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_inode()
712 if (a->non_resident) { in ntfs_read_locked_inode()
728 ni->attr_list_size = (u32)ntfs_attr_size(a); in ntfs_read_locked_inode()
736 if (a->non_resident) { in ntfs_read_locked_inode()
738 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
748 a, NULL); in ntfs_read_locked_inode()
759 sle64_to_cpu(a->data.non_resident. in ntfs_read_locked_inode()
766 if ((u8*)a + le16_to_cpu(a->data.resident.value_offset) in ntfs_read_locked_inode()
768 a->data.resident.value_length) > in ntfs_read_locked_inode()
775 memcpy(ni->attr_list, (u8*)a + le16_to_cpu( in ntfs_read_locked_inode()
776 a->data.resident.value_offset), in ntfs_read_locked_inode()
778 a->data.resident.value_length)); in ntfs_read_locked_inode()
806 a = ctx->attr; in ntfs_read_locked_inode()
808 if (unlikely(a->non_resident)) { in ntfs_read_locked_inode()
814 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_inode()
815 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_inode()
826 if (a->flags & ATTR_COMPRESSION_MASK) in ntfs_read_locked_inode()
828 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
829 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
836 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_inode()
838 ir = (INDEX_ROOT*)((u8*)a + in ntfs_read_locked_inode()
839 le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_inode()
840 ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length); in ntfs_read_locked_inode()
933 a = ctx->attr; in ntfs_read_locked_inode()
934 if (!a->non_resident) { in ntfs_read_locked_inode()
943 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_inode()
945 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_inode()
951 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
956 if (a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_inode()
961 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
966 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
972 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_inode()
974 a->data.non_resident.initialized_size); in ntfs_read_locked_inode()
976 a->data.non_resident.allocated_size); in ntfs_read_locked_inode()
1056 a = ctx->attr; in ntfs_read_locked_inode()
1058 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_SPARSE)) { in ntfs_read_locked_inode()
1059 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_inode()
1071 if ((a->flags & ATTR_COMPRESSION_MASK) in ntfs_read_locked_inode()
1079 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_inode()
1082 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_inode()
1090 if (a->non_resident) { in ntfs_read_locked_inode()
1093 if (NInoCompressed(ni) && a->data.non_resident. in ntfs_read_locked_inode()
1100 a->data.non_resident. in ntfs_read_locked_inode()
1105 if (a->data.non_resident.compression_unit) { in ntfs_read_locked_inode()
1107 (a->data.non_resident. in ntfs_read_locked_inode()
1115 1U << a->data. in ntfs_read_locked_inode()
1126 a->data.non_resident. in ntfs_read_locked_inode()
1129 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_inode()
1136 a->data.non_resident.data_size); in ntfs_read_locked_inode()
1138 a->data.non_resident.initialized_size); in ntfs_read_locked_inode()
1140 a->data.non_resident.allocated_size); in ntfs_read_locked_inode()
1143 a->data.resident.value_length); in ntfs_read_locked_inode()
1144 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_read_locked_inode()
1146 a->data.resident.value_offset); in ntfs_read_locked_inode()
1231 ATTR_RECORD *a; in ntfs_read_locked_attr_inode() local
1270 a = ctx->attr; in ntfs_read_locked_attr_inode()
1271 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_SPARSE)) { in ntfs_read_locked_attr_inode()
1272 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_attr_inode()
1292 if ((a->flags & ATTR_COMPRESSION_MASK) != in ntfs_read_locked_attr_inode()
1312 if (a->flags & ATTR_IS_SPARSE) in ntfs_read_locked_attr_inode()
1315 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_attr_inode()
1340 if (!a->non_resident) { in ntfs_read_locked_attr_inode()
1342 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_attr_inode()
1343 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_attr_inode()
1356 a->data.resident.value_length); in ntfs_read_locked_attr_inode()
1357 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_read_locked_attr_inode()
1358 le16_to_cpu(a->data.resident.value_offset); in ntfs_read_locked_attr_inode()
1370 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_attr_inode()
1372 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_attr_inode()
1378 if (NInoCompressed(ni) && a->data.non_resident. in ntfs_read_locked_attr_inode()
1383 a->data.non_resident. in ntfs_read_locked_attr_inode()
1388 if (a->data.non_resident.compression_unit) { in ntfs_read_locked_attr_inode()
1390 (a->data.non_resident. in ntfs_read_locked_attr_inode()
1397 a->data.non_resident. in ntfs_read_locked_attr_inode()
1405 a->data.non_resident.compressed_size); in ntfs_read_locked_attr_inode()
1407 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_attr_inode()
1412 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_attr_inode()
1414 a->data.non_resident.initialized_size); in ntfs_read_locked_attr_inode()
1416 a->data.non_resident.allocated_size); in ntfs_read_locked_attr_inode()
1499 ATTR_RECORD *a; in ntfs_read_locked_index_inode() local
1540 a = ctx->attr; in ntfs_read_locked_index_inode()
1542 if (unlikely(a->non_resident)) { in ntfs_read_locked_index_inode()
1547 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_index_inode()
1548 le16_to_cpu(a->data.resident.value_offset)))) { in ntfs_read_locked_index_inode()
1557 if (a->flags & (ATTR_COMPRESSION_MASK | ATTR_IS_ENCRYPTED | in ntfs_read_locked_index_inode()
1563 ir = (INDEX_ROOT*)((u8*)a + le16_to_cpu(a->data.resident.value_offset)); in ntfs_read_locked_index_inode()
1564 ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length); in ntfs_read_locked_index_inode()
1637 a = ctx->attr; in ntfs_read_locked_index_inode()
1638 if (!a->non_resident) { in ntfs_read_locked_index_inode()
1646 if (unlikely(a->name_length && (le16_to_cpu(a->name_offset) >= in ntfs_read_locked_index_inode()
1648 a->data.non_resident.mapping_pairs_offset)))) { in ntfs_read_locked_index_inode()
1653 if (a->flags & ATTR_IS_ENCRYPTED) { in ntfs_read_locked_index_inode()
1658 if (a->flags & ATTR_IS_SPARSE) { in ntfs_read_locked_index_inode()
1662 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_locked_index_inode()
1667 if (a->data.non_resident.lowest_vcn) { in ntfs_read_locked_index_inode()
1672 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_index_inode()
1674 a->data.non_resident.initialized_size); in ntfs_read_locked_index_inode()
1675 ni->allocated_size = sle64_to_cpu(a->data.non_resident.allocated_size); in ntfs_read_locked_index_inode()
1784 ATTR_RECORD *a; in ntfs_read_inode_mount() local
1882 a = ctx->attr; in ntfs_read_inode_mount()
1883 if (a->flags & ATTR_COMPRESSION_MASK) { in ntfs_read_inode_mount()
1888 if (a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_inode_mount()
1889 a->flags & ATTR_IS_SPARSE) { in ntfs_read_inode_mount()
1890 if (a->non_resident) { in ntfs_read_inode_mount()
1905 ni->attr_list_size = (u32)ntfs_attr_size(a); in ntfs_read_inode_mount()
1912 if (a->non_resident) { in ntfs_read_inode_mount()
1914 if (a->data.non_resident.lowest_vcn) { in ntfs_read_inode_mount()
1922 a, NULL); in ntfs_read_inode_mount()
1934 sle64_to_cpu(a->data. in ntfs_read_inode_mount()
1942 if ((u8*)a + le16_to_cpu( in ntfs_read_inode_mount()
1943 a->data.resident.value_offset) + in ntfs_read_inode_mount()
1945 a->data.resident.value_length) > in ntfs_read_inode_mount()
1952 memcpy(ni->attr_list, (u8*)a + le16_to_cpu( in ntfs_read_inode_mount()
1953 a->data.resident.value_offset), in ntfs_read_inode_mount()
1955 a->data.resident.value_length)); in ntfs_read_inode_mount()
2020 a = NULL; in ntfs_read_inode_mount()
2027 a = ctx->attr; in ntfs_read_inode_mount()
2029 if (!a->non_resident) { in ntfs_read_inode_mount()
2036 if (a->flags & ATTR_COMPRESSION_MASK || in ntfs_read_inode_mount()
2037 a->flags & ATTR_IS_ENCRYPTED || in ntfs_read_inode_mount()
2038 a->flags & ATTR_IS_SPARSE) { in ntfs_read_inode_mount()
2052 nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_read_inode_mount()
2063 if (a->data.non_resident.lowest_vcn) { in ntfs_read_inode_mount()
2072 a->data.non_resident.allocated_size) in ntfs_read_inode_mount()
2076 a->data.non_resident.data_size); in ntfs_read_inode_mount()
2078 a->data.non_resident.initialized_size); in ntfs_read_inode_mount()
2080 a->data.non_resident.allocated_size); in ntfs_read_inode_mount()
2138 highest_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn); in ntfs_read_inode_mount()
2147 a->data.non_resident.lowest_vcn)) { in ntfs_read_inode_mount()
2158 if (!a) { in ntfs_read_inode_mount()
2372 ATTR_RECORD *a; in ntfs_truncate() local
2424 a = ctx->attr; in ntfs_truncate()
2430 old_size = ntfs_attr_size(a); in ntfs_truncate()
2499 if (a->non_resident) in ntfs_truncate()
2504 !ntfs_resident_attr_value_resize(m, a, new_size)) { in ntfs_truncate()
2510 ni->allocated_size = le32_to_cpu(a->length) - in ntfs_truncate()
2511 le16_to_cpu(a->data.resident.value_offset); in ntfs_truncate()
2622 highest_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn); in ntfs_truncate()
2652 a->data.non_resident.initialized_size = in ntfs_truncate()
2655 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()
2707 a = ctx->attr; in ntfs_truncate()
2749 attr_len = le32_to_cpu(a->length); in ntfs_truncate()
2750 err = ntfs_attr_record_resize(m, a, mp_size + in ntfs_truncate()
2751 le16_to_cpu(a->data.non_resident.mapping_pairs_offset)); in ntfs_truncate()
2756 err = ntfs_mapping_pairs_build(vol, (u8*)a + in ntfs_truncate()
2757 le16_to_cpu(a->data.non_resident.mapping_pairs_offset), in ntfs_truncate()
2769 a->data.non_resident.highest_vcn = cpu_to_sle64((new_alloc_size >> in ntfs_truncate()
2773 a->data.non_resident.allocated_size = cpu_to_sle64(new_alloc_size); in ntfs_truncate()
2779 a->data.non_resident.compressed_size = cpu_to_sle64( in ntfs_truncate()
2800 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()