• Home
  • Raw
  • Download

Lines Matching refs:mft

279 		u64 t64 = sbi->mft.lbo;  in ntfs_loadlog_and_replay()
281 sbi->mft.lbo = sbi->mft.lbo2; in ntfs_loadlog_and_replay()
283 sbi->mft.lbo = t64; in ntfs_loadlog_and_replay()
294 sbi->mft.ni = ntfs_i(inode); in ntfs_loadlog_and_replay()
297 err = ni_load_all_mi(sbi->mft.ni); in ntfs_loadlog_and_replay()
302 sbi->mft.ni = NULL; in ntfs_loadlog_and_replay()
472 struct ntfs_inode *ni = sbi->mft.ni; in ntfs_extend_mft()
476 struct wnd_bitmap *wnd = &sbi->mft.bitmap; in ntfs_extend_mft()
498 err = attr_set_size(ni, ATTR_BITMAP, NULL, 0, &sbi->mft.bitmap.run, in ntfs_extend_mft()
517 ntfs_clear_mft_tail(sbi, sbi->mft.used, new_mft_total); in ntfs_extend_mft()
527 int ntfs_look_free_mft(struct ntfs_sb_info *sbi, CLST *rno, bool mft, in ntfs_look_free_mft() argument
535 struct wnd_bitmap *wnd = &sbi->mft.bitmap; in ntfs_look_free_mft()
538 static_assert(sizeof(sbi->mft.reserved_bitmap) * 8 >= in ntfs_look_free_mft()
541 if (!mft) in ntfs_look_free_mft()
548 if (mft) { in ntfs_look_free_mft()
567 if (!mft || MFT_REC_FREE == sbi->mft.next_reserved) in ntfs_look_free_mft()
577 if (!sbi->mft.reserved_bitmap) { in ntfs_look_free_mft()
579 sbi->mft.reserved_bitmap = 0xFF; in ntfs_look_free_mft()
622 &sbi->mft.reserved_bitmap); in ntfs_look_free_mft()
627 zbit = find_next_zero_bit(&sbi->mft.reserved_bitmap, in ntfs_look_free_mft()
630 sbi->mft.next_reserved = MFT_REC_FREE; in ntfs_look_free_mft()
635 sbi->mft.next_reserved = zbit; in ntfs_look_free_mft()
646 from = sbi->mft.used; in ntfs_look_free_mft()
652 sbi->mft.used = to; in ntfs_look_free_mft()
656 if (mft) { in ntfs_look_free_mft()
665 if (!mft) { in ntfs_look_free_mft()
667 if (sbi->mft.next_free < MFT_REC_USER) in ntfs_look_free_mft()
668 sbi->mft.next_free = MFT_REC_USER; in ntfs_look_free_mft()
671 if (sbi->mft.next_free >= sbi->mft.bitmap.nbits) { in ntfs_look_free_mft()
673 sbi->mft.next_free = sbi->mft.bitmap.nbits; in ntfs_look_free_mft()
676 sbi->mft.next_free = *rno + 1; in ntfs_look_free_mft()
694 else if (*rno >= MFT_REC_RESERVED && sbi->mft.reserved_bitmap_inited) in ntfs_look_free_mft()
695 __set_bit(*rno - MFT_REC_RESERVED, &sbi->mft.reserved_bitmap); in ntfs_look_free_mft()
698 if (!mft) in ntfs_look_free_mft()
709 struct wnd_bitmap *wnd = &sbi->mft.bitmap; in ntfs_mark_rec_free()
720 } else if (rno >= MFT_REC_RESERVED && sbi->mft.reserved_bitmap_inited) { in ntfs_mark_rec_free()
721 __clear_bit(rno - MFT_REC_RESERVED, &sbi->mft.reserved_bitmap); in ntfs_mark_rec_free()
726 else if (rno < sbi->mft.next_free && rno >= MFT_REC_USER) in ntfs_mark_rec_free()
727 sbi->mft.next_free = rno; in ntfs_mark_rec_free()
750 ni = sbi->mft.ni; in ntfs_clear_mft_tail()
769 sbi->mft.used = from; in ntfs_clear_mft_tail()
786 struct ntfs_inode *ni = sbi->mft.ni; in ntfs_refresh_zone()
803 (u64)sbi->mft.bitmap.nbits << sbi->record_bits); in ntfs_refresh_zone()
847 bytes = sbi->mft.recs_mirr << sbi->record_bits; in ntfs_update_mftmirr()
848 block1 = sbi->mft.lbo >> sb->s_blocksize_bits; in ntfs_update_mftmirr()
849 block2 = sbi->mft.lbo2 >> sb->s_blocksize_bits; in ntfs_update_mftmirr()
1164 lbo = vbo + sbi->mft.lbo; in ntfs_read_run_nb()