Lines Matching refs:na

134 	ntfs_attr *na;  in fixup_loop()  local
155 na = ntfs_attr_open(ctx->ntfs_ino, AT_DATA, in fixup_loop()
158 if (!na) { in fixup_loop()
162 if (na && !(ctx->attr->flags & ATTR_IS_ENCRYPTED)) { in fixup_loop()
163 if (!NAttrNonResident(na) in fixup_loop()
164 && ntfs_attr_make_non_resident(na, ctx)) { in fixup_loop()
171 if (ntfs_attr_force_non_resident(na)) { in fixup_loop()
189 && ntfs_efs_fixup_attribute(ctx, na)) { in fixup_loop()
194 if (na) in fixup_loop()
195 ntfs_attr_close(na); in fixup_loop()
215 ntfs_attr *na; in ntfs_set_efs_info() local
266 na = ntfs_attr_open(ni, AT_LOGGED_UTILITY_STREAM, in ntfs_set_efs_info()
268 if (na) { in ntfs_set_efs_info()
270 res = ntfs_attr_truncate(na, (s64)size); in ntfs_set_efs_info()
273 written = (int)ntfs_attr_pwrite(na, in ntfs_set_efs_info()
282 ntfs_attr_close(na); in ntfs_set_efs_info()
317 int ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na) in ntfs_efs_fixup_attribute() argument
326 if (!na) { in ntfs_efs_fixup_attribute()
331 ctx = ntfs_attr_get_search_ctx(na->ni, NULL); in ntfs_efs_fixup_attribute()
337 if (ntfs_attr_lookup(AT_DATA, na->name, na->name_len, in ntfs_efs_fixup_attribute()
343 if (!NAttrNonResident(na)) { in ntfs_efs_fixup_attribute()
351 oldsize = na->data_size; in ntfs_efs_fixup_attribute()
359 if (ntfs_attr_pread(na, oldsize - 2, 2, &appended_bytes) != 2) { in ntfs_efs_fixup_attribute()
364 if (padding_length > 511 || padding_length > na->data_size-2) { in ntfs_efs_fixup_attribute()
376 if (ntfs_attr_truncate(na, oldsize - 2)) { in ntfs_efs_fixup_attribute()
389 if (!NAttrNonResident(na) in ntfs_efs_fixup_attribute()
390 && ntfs_attr_make_non_resident(na, ctx)) { in ntfs_efs_fixup_attribute()
392 || ntfs_attr_force_non_resident(na)) { in ntfs_efs_fixup_attribute()
403 if (ntfs_attr_lookup(AT_DATA, na->name, na->name_len, in ntfs_efs_fixup_attribute()
410 ni = na->ni; in ntfs_efs_fixup_attribute()
411 if (!na->name_len) { in ntfs_efs_fixup_attribute()
413 ni->allocated_size = na->allocated_size; in ntfs_efs_fixup_attribute()