Lines Matching refs:run
141 struct runs_tree run; member
375 struct runs_tree run; member
383 struct runs_tree run; member
415 struct runs_tree *run, const CLST *vcn);
416 int attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run,
422 u64 new_size, struct runs_tree *run,
425 const __le16 *name, u8 name_len, struct runs_tree *run,
433 const __le16 *name, u8 name_len, struct runs_tree *run,
436 const __le16 *name, u8 name_len, struct runs_tree *run,
439 struct runs_tree *run, u64 frame, u64 frames,
532 const struct runs_tree *run, CLST svcn, CLST len,
610 int ntfs_sb_write_run(struct ntfs_sb_info *sbi, const struct runs_tree *run,
613 const struct runs_tree *run, u64 vbo);
614 int ntfs_read_run_nb(struct ntfs_sb_info *sbi, const struct runs_tree *run,
616 int ntfs_read_bh(struct ntfs_sb_info *sbi, const struct runs_tree *run, u64 vbo,
619 int ntfs_get_bh(struct ntfs_sb_info *sbi, const struct runs_tree *run, u64 vbo,
623 int ntfs_bio_pages(struct ntfs_sb_info *sbi, const struct runs_tree *run,
626 int ntfs_bio_fill_1(struct ntfs_sb_info *sbi, const struct runs_tree *run);
627 int ntfs_vbo_to_lbo(struct ntfs_sb_info *sbi, const struct runs_tree *run,
648 int run_deallocate(struct ntfs_sb_info *sbi, struct runs_tree *run, bool trim);
750 struct runs_tree *run, CLST len);
778 bool run_lookup_entry(const struct runs_tree *run, CLST vcn, CLST *lcn,
780 void run_truncate(struct runs_tree *run, CLST vcn);
781 void run_truncate_head(struct runs_tree *run, CLST vcn);
782 void run_truncate_around(struct runs_tree *run, CLST vcn);
783 bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *Index);
784 bool run_add_entry(struct runs_tree *run, CLST vcn, CLST lcn, CLST len,
786 bool run_collapse_range(struct runs_tree *run, CLST vcn, CLST len);
787 bool run_get_entry(const struct runs_tree *run, size_t index, CLST *vcn,
789 bool run_is_mapped_full(const struct runs_tree *run, CLST svcn, CLST evcn);
791 int run_pack(const struct runs_tree *run, CLST svcn, CLST len, u8 *run_buf,
793 int run_unpack(struct runs_tree *run, struct ntfs_sb_info *sbi, CLST ino,
798 int run_unpack_ex(struct runs_tree *run, struct ntfs_sb_info *sbi, CLST ino,
919 static inline void run_init(struct runs_tree *run) in run_init() argument
921 run->runs = NULL; in run_init()
922 run->count = 0; in run_init()
923 run->allocated = 0; in run_init()
931 static inline void run_close(struct runs_tree *run) in run_close() argument
933 kvfree(run->runs); in run_close()
934 memset(run, 0, sizeof(*run)); in run_close()
937 static inline void run_free(struct runs_tree *run) in run_free() argument
939 if (run) { in run_free()
940 kvfree(run->runs); in run_free()
941 kfree(run); in run_free()
945 static inline bool run_is_empty(struct runs_tree *run) in run_is_empty() argument
947 return !run->count; in run_is_empty()
1118 struct runs_tree *run, CLST vcn) in attr_load_runs_attr() argument
1121 attr->name_len, run, vcn); in attr_load_runs_attr()