Lines Matching defs:run
341 err = ntfs_bio_fill_1(sbi, &ni->file.run);
512 err = attr_set_size(ni, ATTR_DATA, NULL, 0, &ni->file.run,
527 err = attr_set_size(ni, ATTR_BITMAP, NULL, 0, &sbi->mft.bitmap.run,
775 struct runs_tree *run;
783 run = &ni->file.run;
790 err = ntfs_get_bh(sbi, run, vbo, rs, &nb);
827 if (!run_lookup_entry(&ni->file.run, vcn - 1, &lcn, &len, NULL))
836 /* Try to allocate clusters after last MFT run. */
1127 int ntfs_sb_write_run(struct ntfs_sb_info *sbi, const struct runs_tree *run,
1137 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx))
1158 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) ||
1176 const struct runs_tree *run, u64 vbo)
1183 if (!run_lookup_entry(run, vbo >> cluster_bits, &lcn, NULL, NULL))
1191 int ntfs_read_run_nb(struct ntfs_sb_info *sbi, const struct runs_tree *run,
1206 if (!run) {
1216 } else if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) {
1276 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) ||
1309 int ntfs_read_bh(struct ntfs_sb_info *sbi, const struct runs_tree *run, u64 vbo,
1313 int err = ntfs_read_run_nb(sbi, run, vbo, rhdr, bytes, nb);
1320 int ntfs_get_bh(struct ntfs_sb_info *sbi, const struct runs_tree *run, u64 vbo,
1336 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) {
1394 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) ||
1497 int ntfs_bio_pages(struct ntfs_sb_info *sbi, const struct runs_tree *run,
1524 if (!run_lookup_entry(run, vcn, &lcn, &clen, &run_idx)) {
1572 if (!run_get_entry(run, ++run_idx, &vcn, &lcn, &clen) ||
1596 int ntfs_bio_fill_1(struct ntfs_sb_info *sbi, const struct runs_tree *run)
1620 if (!run_lookup_entry(run, 0, &lcn, &clen, &run_idx)) {
1652 } while (run_get_entry(run, ++run_idx, NULL, &lcn, &clen));
1666 int ntfs_vbo_to_lbo(struct ntfs_sb_info *sbi, const struct runs_tree *run,
1673 if (!run_lookup_entry(run, vbo >> cluster_bits, &lcn, &len, NULL))
2039 err = ntfs_read_run_nb(sbi, &ni->file.run,
2050 err = ntfs_read_run_nb(sbi, &ni->file.run,
2147 err = ntfs_read_run_nb(sbi, &ni->file.run,
2203 err = ntfs_sb_write_run(sbi, &ni->file.run, sbi->security.next_off,
2214 ARRAY_SIZE(SDS_NAME), &ni->file.run,
2221 err = ntfs_sb_write_run(sbi, &ni->file.run, mirr_off, d_security,
2548 int run_deallocate(struct ntfs_sb_info *sbi, const struct runs_tree *run,
2554 while (run_get_entry(run, idx++, NULL, &lcn, &len)) {