Lines Matching refs:svcn
229 if (attr->nres.svcn) in ni_find_attr()
231 } else if (le64_to_cpu(attr->nres.svcn) > *vcn || in ni_find_attr()
329 if (le64_to_cpu(attr->nres.svcn) <= vcn && in ni_load_attr()
461 CLST svcn, struct ATTR_LIST_ENTRY **ins_le) in ni_ins_new_attr() argument
471 err = al_add_le(ni, type, name, name_len, svcn, cpu_to_le16(-1), in ni_ins_new_attr()
533 CLST svcn, evcn = 0, svcn_p, evcn_p, next_svcn; in ni_repack()
543 svcn = le64_to_cpu(attr->nres.svcn); in ni_repack()
544 if (svcn != le64_to_cpu(le->vcn)) { in ni_repack()
549 if (!svcn) { in ni_repack()
553 } else if (svcn != evcn + 1) { in ni_repack()
560 if (svcn > evcn + 1) { in ni_repack()
583 err = run_unpack(&run, sbi, ni->mi.rno, svcn, evcn, svcn, in ni_repack()
592 svcn_p = svcn; in ni_repack()
617 attr->nres.svcn = le->vcn = cpu_to_le64(next_svcn); in ni_repack()
943 u32 asize, CLST svcn, u16 name_off, bool force_ext, in ni_ins_attr_ext() argument
981 vbo = is_mft_data ? ((u64)svcn << sbi->cluster_bits) : 0; in ni_ins_attr_ext()
1025 name_off, svcn, ins_le); in ni_ins_attr_ext()
1050 name_off, svcn, ins_le); in ni_ins_attr_ext()
1094 u16 name_off, CLST svcn, struct ATTRIB **ins_attr, in ni_insert_attr() argument
1125 asize, name_off, svcn, ins_le); in ni_insert_attr()
1141 if (!is_mft || type != ATTR_DATA || svcn) { in ni_insert_attr()
1144 svcn, name_off, false, ins_attr, ins_mi, in ni_insert_attr()
1222 name_off, svcn, ins_le); in ni_insert_attr()
1250 CLST mft_min, mft_new, svcn, evcn, plen; in ni_expand_mft_list() local
1292 svcn = bytes_to_cluster(sbi, (u64)(mft_min + 1) << sbi->record_bits); in ni_expand_mft_list()
1293 if (evcn + 1 >= svcn) { in ni_expand_mft_list()
1303 err = run_pack(run, 0, svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list()
1311 if (plen < svcn) { in ni_expand_mft_list()
1316 attr->nres.evcn = cpu_to_le64(svcn - 1); in ni_expand_mft_list()
1323 err = run_pack(run, svcn, evcn + 1 - svcn, NULL, sbi->record_size, in ni_expand_mft_list()
1331 if (plen < evcn + 1 - svcn) { in ni_expand_mft_list()
1342 SIZEOF_NONRESIDENT, svcn, NULL); in ni_expand_mft_list()
1358 run_pack(run, svcn, evcn + 1 - svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list()
1361 attr->nres.svcn = cpu_to_le64(svcn); in ni_expand_mft_list()
1443 const struct runs_tree *run, CLST svcn, CLST len, in ni_insert_nonresident() argument
1451 !svcn; in ni_insert_nonresident()
1459 err = run_pack(run, svcn, len, NULL, sbi->max_bytes_per_attr - run_off, in ni_insert_nonresident()
1478 err = ni_insert_attr(ni, type, name, name_len, asize, name_off, svcn, in ni_insert_nonresident()
1489 run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size, &plen); in ni_insert_nonresident()
1491 attr->nres.svcn = cpu_to_le64(svcn); in ni_insert_nonresident()
1492 attr->nres.evcn = cpu_to_le64((u64)svcn + len - 1); in ni_insert_nonresident()
1500 svcn ? 0 : cpu_to_le64((u64)len << ni->mi.sbi->cluster_bits); in ni_insert_nonresident()
1577 CLST svcn, evcn; in ni_delete_all() local
1597 svcn = le64_to_cpu(attr->nres.svcn); in ni_delete_all()
1600 if (evcn + 1 <= svcn) in ni_delete_all()
1612 run_unpack_ex(RUN_DEALLOCATE, sbi, ni->mi.rno, svcn, evcn, svcn, in ni_delete_all()
2346 CLST svcn, evcn; in ni_decompress_file() local
2365 svcn = le64_to_cpu(attr->nres.svcn); in ni_decompress_file()
2368 if (evcn + 1 <= svcn) in ni_decompress_file()
2380 run_unpack_ex(RUN_DEALLOCATE, sbi, ni->mi.rno, svcn, evcn, svcn, in ni_decompress_file()
2673 run_truncate_around(run, le64_to_cpu(attr->nres.svcn)); in ni_read_frame()
2923 run_truncate_around(&ni->file.run, le64_to_cpu(attr->nres.svcn)); in ni_write_frame()