• Home
  • Raw
  • Download

Lines Matching refs:mft_no

63 	index = (u64)ni->mft_no << vol->mft_record_size_bits >>  in map_mft_record_page()
65 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK; in map_mft_record_page()
79 "driver.", ni->mft_no); in map_mft_record_page()
94 "Run chkdsk.", ni->mft_no); in map_mft_record_page()
159 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no); in map_mft_record()
219 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no); in unmap_mft_record()
253 unsigned long mft_no = MREF(mref); in map_extent_mft_record() local
258 mft_no, base_ni->mft_no); in map_extent_mft_record()
270 if (mft_no != extent_nis[i]->mft_no) in map_extent_mft_record()
304 ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no); in map_extent_mft_record()
399 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no); in __mark_mft_record_dirty()
439 const unsigned long mft_no, MFT_RECORD *m) in ntfs_sync_mft_mirror_umount() argument
465 int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no, in ntfs_sync_mft_mirror() argument
479 ntfs_debug("Entering for inode 0x%lx.", mft_no); in ntfs_sync_mft_mirror()
483 err = ntfs_sync_mft_mirror_umount(vol, mft_no, m); in ntfs_sync_mft_mirror()
489 page = ntfs_map_page(vol->mftmirr_ino->i_mapping, mft_no >> in ntfs_sync_mft_mirror()
500 page_ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK; in ntfs_sync_mft_mirror()
540 vcn = ((VCN)mft_no << vol->mft_record_size_bits) + in ntfs_sync_mft_mirror()
571 "%lli).", mft_no, in ntfs_sync_mft_mirror()
627 "record 0x%lx!", mft_no); in ntfs_sync_mft_mirror()
682 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no); in write_mft_record_nolock()
729 vcn = ((VCN)ni->mft_no << vol->mft_record_size_bits) + in write_mft_record_nolock()
755 ni->mft_no, (long long)lcn); in write_mft_record_nolock()
791 if (!sync && ni->mft_no < vol->mftmirr_size) in write_mft_record_nolock()
792 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync); in write_mft_record_nolock()
809 if (sync && ni->mft_no < vol->mftmirr_size) in write_mft_record_nolock()
810 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync); in write_mft_record_nolock()
819 ni->mft_no); in write_mft_record_nolock()
925 bool ntfs_may_write_mft_record(ntfs_volume *vol, const unsigned long mft_no, in ntfs_may_write_mft_record() argument
935 ntfs_debug("Entering for inode 0x%lx.", mft_no); in ntfs_may_write_mft_record()
945 ntfs_debug("Looking for inode 0x%lx in icache.", mft_no); in ntfs_may_write_mft_record()
946 na.mft_no = mft_no; in ntfs_may_write_mft_record()
954 if (!mft_no) { in ntfs_may_write_mft_record()
966 vi = ilookup5_nowait(sb, mft_no, (test_t)ntfs_test_inode, &na); in ntfs_may_write_mft_record()
969 ntfs_debug("Base inode 0x%lx is in icache.", mft_no); in ntfs_may_write_mft_record()
977 mft_no); in ntfs_may_write_mft_record()
982 ntfs_debug("Inode 0x%lx is not dirty.", mft_no); in ntfs_may_write_mft_record()
986 "not write it.", mft_no); in ntfs_may_write_mft_record()
992 mft_no); in ntfs_may_write_mft_record()
1000 ntfs_debug("Inode 0x%lx is not in icache.", mft_no); in ntfs_may_write_mft_record()
1005 mft_no); in ntfs_may_write_mft_record()
1011 mft_no); in ntfs_may_write_mft_record()
1019 na.mft_no = MREF_LE(m->base_mft_record); in ntfs_may_write_mft_record()
1021 "inode 0x%lx in icache.", mft_no, na.mft_no); in ntfs_may_write_mft_record()
1022 if (!na.mft_no) { in ntfs_may_write_mft_record()
1027 vi = ilookup5_nowait(sb, na.mft_no, (test_t)ntfs_test_inode, in ntfs_may_write_mft_record()
1035 "extent record.", na.mft_no); in ntfs_may_write_mft_record()
1038 ntfs_debug("Base inode 0x%lx is in icache.", na.mft_no); in ntfs_may_write_mft_record()
1053 "write the extent record.", na.mft_no); in ntfs_may_write_mft_record()
1059 if (mft_no == extent_nis[i]->mft_no) { in ntfs_may_write_mft_record()
1077 mft_no, na.mft_no); in ntfs_may_write_mft_record()
1081 mft_no, na.mft_no); in ntfs_may_write_mft_record()
1093 "not write it.", mft_no); in ntfs_may_write_mft_record()
1097 mft_no); in ntfs_may_write_mft_record()
1100 mft_no); in ntfs_may_write_mft_record()
1162 data_pos = base_ni->mft_no + 1; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
2012 static int ntfs_mft_record_layout(const ntfs_volume *vol, const s64 mft_no, in ntfs_mft_record_layout() argument
2017 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); in ntfs_mft_record_layout()
2018 if (mft_no >= (1ll << 32)) { in ntfs_mft_record_layout()
2020 "maximum of 2^32.", (long long)mft_no); in ntfs_mft_record_layout()
2035 m->mft_record_number = cpu_to_le32((u32)mft_no); in ntfs_mft_record_layout()
2091 static int ntfs_mft_record_format(const ntfs_volume *vol, const s64 mft_no) in ntfs_mft_record_format() argument
2101 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2106 index = mft_no << vol->mft_record_size_bits >> PAGE_CACHE_SHIFT; in ntfs_mft_record_format()
2107 ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK; in ntfs_mft_record_format()
2115 "record 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2123 "to format 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2130 err = ntfs_mft_record_layout(vol, mft_no, m); in ntfs_mft_record_format()
2133 (long long)mft_no); in ntfs_mft_record_format()
2263 (long long)base_ni->mft_no); in ntfs_mft_record_alloc()
2438 s64 new_initialized_size, mft_no; in ntfs_mft_record_alloc() local
2442 mft_no = mft_ni->initialized_size >> vol->mft_record_size_bits; in ntfs_mft_record_alloc()
2447 (long long)mft_no); in ntfs_mft_record_alloc()
2448 err = ntfs_mft_record_format(vol, mft_no); in ntfs_mft_record_alloc()
2586 m->base_mft_record = MK_LE_MREF(base_ni->mft_no, in ntfs_mft_record_alloc()
2786 unsigned long mft_no = ni->mft_no; in ntfs_extent_mft_record_free() local
2804 mft_no, base_ni->mft_no); in ntfs_extent_mft_record_free()
2811 "not freeing.", base_ni->mft_no); in ntfs_extent_mft_record_free()
2834 "its base inode 0x%lx.", mft_no, in ntfs_extent_mft_record_free()
2835 base_ni->mft_no); in ntfs_extent_mft_record_free()
2865 "freeing.", mft_no); in ntfs_extent_mft_record_free()
2875 err = ntfs_bitmap_clear_bit(vol->mftbmp_ino, mft_no); in ntfs_extent_mft_record_free()