Lines Matching refs:rno
31 if (mi->rno > ino) in ni_ins_mi()
33 else if (mi->rno < ino) in ni_ins_mi()
50 static struct mft_inode *ni_find_mi(struct ntfs_inode *ni, CLST rno) in ni_find_mi() argument
52 return ni_ins_mi(ni, &ni->mi_tree, rno, NULL); in ni_find_mi()
60 ni_ins_mi(ni, &ni->mi_tree, mi->rno, &mi->node); in ni_add_mi()
141 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi) in ni_load_mi_ex() argument
146 r = ni_find_mi(ni, rno); in ni_load_mi_ex()
150 err = mi_get(ni->mi.sbi, rno, &r); in ni_load_mi_ex()
168 CLST rno; in ni_load_mi() local
175 rno = ino_get(&le->ref); in ni_load_mi()
176 if (rno == ni->mi.rno) { in ni_load_mi()
180 return ni_load_mi_ex(ni, rno, mi); in ni_load_mi()
350 CLST rno = ino_get(&le->ref); in ni_load_all_mi() local
352 if (rno == ni->mi.rno) in ni_load_all_mi()
355 err = ni_load_mi_ex(ni, rno, NULL); in ni_load_all_mi()
366 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi) in ni_add_subrecord() argument
374 if (mi_format_new(m, ni->mi.sbi, rno, 0, ni->mi.rno == MFT_REC_MFT)) { in ni_add_subrecord()
583 err = run_unpack(&run, sbi, ni->mi.rno, svcn, evcn, svcn, in ni_repack()
809 CLST rno = 0; in ni_create_attr_list() local
814 is_mft = ni->mi.rno == MFT_REC_MFT; in ni_create_attr_list()
878 err = ntfs_look_free_mft(sbi, &rno, is_mft, ni, &mi); in ni_create_attr_list()
949 CLST rno; in ni_ins_attr_ext() local
956 is_mft = ni->mi.rno == MFT_REC_MFT; in ni_ins_attr_ext()
969 ni->mi.rno == MFT_REC_LOG) { in ni_ins_attr_ext()
997 vbo <= ((u64)mi->rno << sbi->record_bits))) { in ni_ins_attr_ext()
1040 err = ntfs_look_free_mft(sbi, &rno, is_mft_data, ni, &mi); in ni_ins_attr_ext()
1044 if (is_mft_data && vbo <= ((u64)rno << sbi->record_bits)) { in ni_ins_attr_ext()
1073 ntfs_mark_rec_free(sbi, rno, is_mft); in ni_ins_attr_ext()
1108 is_mft = ni->mi.rno == MFT_REC_MFT; in ni_insert_attr()
1265 mft_min = mi->rno; in ni_expand_mft_list()
1383 bool is_mft = ni->mi.rno == MFT_REC_MFT; in ni_expand_list()
1612 run_unpack_ex(RUN_DEALLOCATE, sbi, ni->mi.rno, svcn, evcn, svcn, in ni_delete_all()
1630 ntfs_mark_rec_free(sbi, mi->rno, false); in ni_delete_all()
1641 ntfs_mark_rec_free(sbi, ni->mi.rno, false); in ni_delete_all()
2380 run_unpack_ex(RUN_DEALLOCATE, sbi, ni->mi.rno, svcn, evcn, svcn, in ni_decompress_file()
3430 ntfs_mark_rec_free(sbi, mi->rno, false); in ni_write_inode()