| /linux/fs/ntfs3/ |
| H A D | ntfs_fs.h | 238 CLST zone_max; // Maximum MFT zone length in clusters 239 CLST bad_clusters; // The count of marked bad clusters. 245 CLST objid_no; 246 CLST quota_no; 247 CLST reparse_no; 248 CLST usn_jrnl_no; 277 CLST next_free_lcn; 342 CLST rno; 449 struct runs_tree *run_da, CLST vcn, CLST lcn, 450 CLST len, CLST *pre_alloc, enum ALLOCATE_OPT opt, [all …]
|
| H A D | run.c | 22 CLST vcn; /* Virtual cluster number. */ 23 CLST len; /* Length in clusters. */ 24 CLST lcn; /* Logical cluster number. */ 35 static bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *index) in run_lookup() 105 CLST end = r->vcn + r->len; in run_consolidate() 106 CLST dl; in run_consolidate() 168 bool run_is_mapped_full(const struct runs_tree *run, CLST svcn, CLST evcn) in run_is_mapped_full() 172 CLST next_vcn; in run_is_mapped_full() 193 bool run_lookup_entry(const struct runs_tree *run, CLST vcn, CLST *lcn, in run_lookup_entry() 194 CLST *len, size_t *index) in run_lookup_entry() [all …]
|
| H A D | attrib.c | 61 struct runs_tree *run, const CLST *vcn) in attr_load_runs() 64 CLST svcn = le64_to_cpu(attr->nres.svcn); in attr_load_runs() 65 CLST evcn = le64_to_cpu(attr->nres.evcn); in attr_load_runs() 94 CLST vcn, CLST len, CLST *done, bool trim, in run_deallocate_ex() 98 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() 126 CLST da_len; in run_deallocate_ex() 161 struct runs_tree *run_da, CLST vcn, CLST lcn, in attr_allocate_clusters() 162 CLST len, CLST *pre_alloc, enum ALLOCATE_OPT opt, in attr_allocate_clusters() 163 CLST *alen, const size_t fr, CLST *new_lcn, in attr_allocate_clusters() 164 CLST *new_len) in attr_allocate_clusters() [all …]
|
| H A D | fsntfs.c | 352 int ntfs_look_for_free_space(struct ntfs_sb_info *sbi, CLST lcn, CLST len, in ntfs_look_for_free_space() 353 CLST *new_lcn, CLST *new_len, in ntfs_look_for_free_space() 357 CLST alen; in ntfs_look_for_free_space() 381 alen = min_t(CLST, len, zlen); in ntfs_look_for_free_space() 452 bool ntfs_check_free_space(struct ntfs_sb_info *sbi, CLST clen, CLST mlen, in ntfs_check_free_space() 457 CLST da_clusters = ntfs_get_da(sbi); in ntfs_check_free_space() 579 int ntfs_look_free_mft(struct ntfs_sb_info *sbi, CLST *rno, bool mft, in ntfs_look_free_mft() 760 void ntfs_mark_rec_free(struct ntfs_sb_info *sbi, CLST rno, bool is_mft) in ntfs_mark_rec_free() 838 CLST lcn, vcn, len; in ntfs_refresh_zone() 1126 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; in ntfs_sb_write_run() [all …]
|
| H A D | ntfs.h | 74 typedef u64 CLST; typedef 77 typedef u32 CLST; typedef 82 #define SPARSE_LCN ((CLST)-1) 84 #define RESIDENT_LCN ((CLST)-2) 85 #define COMPRESSED_LCN ((CLST)-3) 86 #define EOF_LCN ((CLST)-4) 87 #define DELALLOC_LCN ((CLST)-5) 187 static inline CLST ino_get(const struct MFT_REF *ref) in ino_get() 646 static inline void de_set_vbn(struct NTFS_DE *e, CLST vcn) in de_set_vbn() 658 static inline CLST de_get_vbn(const struct NTFS_DE *e) in de_get_vbn()
|
| H A D | frecord.c | 21 CLST ino, struct rb_node *ins) in ni_ins_mi() 50 static struct mft_inode *ni_find_mi(struct ntfs_inode *ni, CLST rno) in ni_find_mi() 143 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi) in ni_load_mi_ex() 172 CLST rno; in ni_load_mi() 194 const __le16 *name, u8 name_len, const CLST *vcn, in ni_find_attr() 299 CLST rno = ino_get(&le->ref); in ni_load_all_mi() 315 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi) in ni_add_subrecord() 413 CLST svcn, struct ATTR_LIST_ENTRY **ins_le) in ni_ins_new_attr() 483 CLST alloc = 0; in ni_repack() 485 CLST svcn, evcn = 0, svcn_p, evcn_p, next_svcn; in ni_repack() [all …]
|
| H A D | record.c | 71 int mi_get(struct ntfs_sb_info *sbi, CLST rno, struct mft_inode **mi) in mi_get() 101 int mi_init(struct mft_inode *mi, struct ntfs_sb_info *sbi, CLST rno) in mi_init() 414 int mi_format_new(struct mft_inode *mi, struct ntfs_sb_info *sbi, CLST rno, in mi_format_new() 624 const struct runs_tree *run, CLST len) in mi_pack_runs() 629 CLST plen; in mi_pack_runs() 631 CLST svcn = le64_to_cpu(attr->nres.svcn); in mi_pack_runs()
|
| H A D | attrlist.c | 181 CLST svcn = attr_svcn(attr); in al_find_le() 197 u8 name_len, const CLST *vcn) in al_find_ex() 254 u8 name_len, CLST vcn) in al_find_le_to_insert() 296 u8 name_len, CLST svcn, __le16 id, const struct MFT_REF *ref, in al_add_le()
|
| H A D | file.c | 317 CLST lcn, len; in ntfs_file_mmap_prepare() 318 CLST vcn = from >> sbi->cluster_bits; in ntfs_file_mmap_prepare() 319 CLST end = bytes_to_cluster(sbi, to); in ntfs_file_mmap_prepare() 644 CLST vcn = vbo >> cluster_bits; in ntfs_fallocate() 645 CLST cend = bytes_to_cluster(sbi, end); in ntfs_fallocate() 646 CLST cend_v = bytes_to_cluster(sbi, ni->i_valid); in ntfs_fallocate() 647 CLST lcn, clen; in ntfs_fallocate() 995 CLST frame; in ntfs_compress_write() 1023 CLST lcn, clen; in ntfs_compress_write()
|
| H A D | index.c | 210 CLST vcn = off >> sbi->cluster_bits; in bmp_buf_get() 377 CLST lcn, clen, vcn, vcn_next; in scan_nres_bitmap() 633 const CLST *vbn) in index_buf_check() 930 struct ntfs_inode *ni, CLST vbn, in indx_new() 1035 int indx_read_ra(struct ntfs_index *indx, struct ntfs_inode *ni, CLST vbn, in indx_read_ra() 1323 CLST next_used_vbn; in indx_find_raw() 1324 CLST next_vbn; in indx_find_raw() 1434 CLST *vbn) in indx_create_allocate() 1442 CLST len = alloc_size >> sbi->cluster_bits; in indx_create_allocate() 1444 CLST alen; in indx_create_allocate() [all …]
|
| H A D | bitmap.c | 510 CLST lcn, clen; in wnd_rescan() 700 CLST lcn, clen; in wnd_map() 1426 CLST len = 0, lcn = 0, done = 0; in ntfs_trim_fs() 1427 CLST minlen = bytes_to_cluster(sbi, range->minlen); in ntfs_trim_fs() 1428 CLST lcn_from = bytes_to_cluster(sbi, range->start); in ntfs_trim_fs() 1431 CLST lcn_to; in ntfs_trim_fs() 1444 CLST lcn_wnd = iw * wbits; in ntfs_trim_fs()
|
| H A D | super.c | 739 CLST da_clusters = ntfs_get_da(sbi); in ntfs_statfs() 1209 sbi->zone_max = min_t(CLST, 0x20000000 >> cluster_bits, clusters >> 3); in ntfs_init_from_boot() 1258 CLST vcn, lcn, len; in ntfs_fill_super() 1720 void ntfs_unmap_meta(struct super_block *sb, CLST lcn, CLST len) in ntfs_unmap_meta() 1749 int ntfs_discard(struct ntfs_sb_info *sbi, CLST lcn, CLST len) in ntfs_discard()
|
| H A D | inode.c | 780 CLST vcn = offset >> cluster_bits; in ntfs_iomap_begin() 786 CLST lcn, clen, clen_max = 1; in ntfs_iomap_begin() 1245 CLST ino = 0; in ntfs_create_inode() 1256 CLST vcn; in ntfs_create_inode() 1582 CLST alen; in ntfs_create_inode() 1583 CLST clst = bytes_to_cluster(sbi, nsize); in ntfs_create_inode()
|
| H A D | fslog.c | 2971 const struct ATTRIB *attr, CLST rno) in find_loaded_attr() 3065 CLST rno = 0, rno_base = 0; in do_action() 3757 CLST rno, lcn, lcn0, len0, clen; in log_replay() 4787 CLST svcn = le64_to_cpu(attr->nres.svcn); in log_replay()
|