Lines Matching defs:mftbmp_na
477 ntfs_attr *mftbmp_na;
485 mftbmp_na = vol->mftbmp_na;
492 ll = mftbmp_na->initialized_size << 3;
535 ll = ntfs_attr_pread(mftbmp_na, ofs, size, buf);
645 ntfs_attr *mftbmp_na;
656 mftbmp_na = vol->mftbmp_na;
661 rl = ntfs_attr_find_vcn(mftbmp_na, (mftbmp_na->allocated_size - 1) >>
678 rl = ntfs_runlists_merge(mftbmp_na->rl, rl2);
690 mftbmp_na->rl = rl;
699 ctx = ntfs_attr_get_search_ctx(mftbmp_na->ni, NULL);
703 if (ntfs_attr_lookup(mftbmp_na->type, mftbmp_na->name,
704 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) {
712 rl2 = ntfs_attr_find_vcn(mftbmp_na, ll);
732 ret = ntfs_mft_attr_extend(vol->mftbmp_na);
764 if (ntfs_attr_lookup(mftbmp_na->type, mftbmp_na->name,
765 mftbmp_na->name_len, 0, 0, NULL, 0, ctx)) {
773 mftbmp_na->allocated_size += vol->cluster_size;
774 a->allocated_size = cpu_to_sle64(mftbmp_na->allocated_size);
783 if (ntfs_attr_lookup(mftbmp_na->type, mftbmp_na->name,
784 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) {
788 mftbmp_na->allocated_size += vol->cluster_size;
826 if (ntfs_attr_update_mapping_pairs(vol->mftbmp_na, 0))
870 ntfs_attr *mftbmp_na;
878 mftbmp_na = vol->mftbmp_na;
879 ctx = ntfs_attr_get_search_ctx(mftbmp_na->ni, NULL);
883 if (ntfs_attr_lookup(mftbmp_na->type, mftbmp_na->name,
884 mftbmp_na->name_len, 0, 0, NULL, 0, ctx)) {
891 old_data_size = mftbmp_na->data_size;
892 old_initialized_size = mftbmp_na->initialized_size;
893 mftbmp_na->initialized_size += 8;
894 a->initialized_size = cpu_to_sle64(mftbmp_na->initialized_size);
895 if (mftbmp_na->initialized_size > mftbmp_na->data_size) {
896 mftbmp_na->data_size = mftbmp_na->initialized_size;
897 a->data_size = cpu_to_sle64(mftbmp_na->data_size);
904 ll = ntfs_attr_pwrite(mftbmp_na, old_initialized_size, 8, &ll);
916 ctx = ntfs_attr_get_search_ctx(mftbmp_na->ni, NULL);
920 if (ntfs_attr_lookup(mftbmp_na->type, mftbmp_na->name,
921 mftbmp_na->name_len, 0, 0, NULL, 0, ctx)) {
929 mftbmp_na->initialized_size = old_initialized_size;
931 if (mftbmp_na->data_size != old_data_size) {
932 mftbmp_na->data_size = old_data_size;
939 (long long)mftbmp_na->allocated_size,
940 (long long)mftbmp_na->data_size,
941 (long long)mftbmp_na->initialized_size);
1190 ntfs_attr *mft_na, *mftbmp_na;
1196 /* NOTE: Caller must sanity check vol, vol->mft_na and vol->mftbmp_na */
1199 mftbmp_na = vol->mftbmp_na;
1295 ntfs_attr *mft_na, *mftbmp_na;
1302 mftbmp_na = vol->mftbmp_na;
1357 ntfs_attr *mft_na, *mftbmp_na;
1367 mftbmp_na = vol->mftbmp_na;
1384 if (ntfs_bitmap_set_bit(mftbmp_na, bit)) {
1491 if (ntfs_bitmap_clear_bit(mftbmp_na, bit))
1587 ntfs_attr *mft_na, *mftbmp_na;
1599 if (!vol || !vol->mft_na || !vol->mftbmp_na) {
1610 mftbmp_na = vol->mftbmp_na;
1629 if (mftbmp_na->initialized_size << 3 > ll &&
1630 mftbmp_na->initialized_size > RESERVED_MFT_RECORDS / 8) {
1645 (long long)mftbmp_na->allocated_size,
1646 (long long)mftbmp_na->data_size,
1647 (long long)mftbmp_na->initialized_size);
1648 if (mftbmp_na->initialized_size + 8 > mftbmp_na->allocated_size) {
1663 (long long)mftbmp_na->allocated_size,
1664 (long long)mftbmp_na->data_size,
1665 (long long)mftbmp_na->initialized_size);
1672 bit = mftbmp_na->initialized_size << 3;
1678 (long long)mftbmp_na->allocated_size,
1679 (long long)mftbmp_na->data_size,
1680 (long long)mftbmp_na->initialized_size);
1684 if (ntfs_bitmap_set_bit(mftbmp_na, bit)) {
1794 if (ntfs_bitmap_clear_bit(mftbmp_na, bit))
1823 if (!vol || !vol->mftbmp_na || !ni) {
1851 if (ntfs_bitmap_clear_bit(vol->mftbmp_na, mft_no)) {
1867 if (ntfs_bitmap_set_bit(vol->mftbmp_na, mft_no))