Lines Matching refs:mft_no

66 	index = (u64)ni->mft_no << vol->mft_record_size_bits >>  in map_mft_record_page()
68 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page()
82 "driver.", ni->mft_no); in map_mft_record_page()
97 "Run chkdsk.", ni->mft_no); in map_mft_record_page()
162 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no); in map_mft_record()
222 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no); in unmap_mft_record()
256 unsigned long mft_no = MREF(mref); in map_extent_mft_record() local
261 mft_no, base_ni->mft_no); in map_extent_mft_record()
273 if (mft_no != extent_nis[i]->mft_no) in map_extent_mft_record()
307 ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no); in map_extent_mft_record()
402 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no); in __mark_mft_record_dirty()
442 const unsigned long mft_no, MFT_RECORD *m) in ntfs_sync_mft_mirror_umount() argument
468 int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no, in ntfs_sync_mft_mirror() argument
482 ntfs_debug("Entering for inode 0x%lx.", mft_no); in ntfs_sync_mft_mirror()
488 err = ntfs_sync_mft_mirror_umount(vol, mft_no, m); in ntfs_sync_mft_mirror()
494 page = ntfs_map_page(vol->mftmirr_ino->i_mapping, mft_no >> in ntfs_sync_mft_mirror()
505 page_ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in ntfs_sync_mft_mirror()
545 vcn = ((VCN)mft_no << vol->mft_record_size_bits) + in ntfs_sync_mft_mirror()
576 "%lli).", mft_no, in ntfs_sync_mft_mirror()
632 "record 0x%lx!", mft_no); in ntfs_sync_mft_mirror()
687 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no); in write_mft_record_nolock()
738 vcn = ((VCN)ni->mft_no << vol->mft_record_size_bits) + in write_mft_record_nolock()
764 ni->mft_no, (long long)lcn); in write_mft_record_nolock()
800 if (!sync && ni->mft_no < vol->mftmirr_size) in write_mft_record_nolock()
801 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync); in write_mft_record_nolock()
818 if (sync && ni->mft_no < vol->mftmirr_size) in write_mft_record_nolock()
819 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync); in write_mft_record_nolock()
828 ni->mft_no); in write_mft_record_nolock()
934 bool ntfs_may_write_mft_record(ntfs_volume *vol, const unsigned long mft_no, in ntfs_may_write_mft_record() argument
944 ntfs_debug("Entering for inode 0x%lx.", mft_no); in ntfs_may_write_mft_record()
954 ntfs_debug("Looking for inode 0x%lx in icache.", mft_no); in ntfs_may_write_mft_record()
955 na.mft_no = mft_no; in ntfs_may_write_mft_record()
963 if (!mft_no) { in ntfs_may_write_mft_record()
975 vi = ilookup5_nowait(sb, mft_no, (test_t)ntfs_test_inode, &na); in ntfs_may_write_mft_record()
978 ntfs_debug("Base inode 0x%lx is in icache.", mft_no); in ntfs_may_write_mft_record()
986 mft_no); in ntfs_may_write_mft_record()
991 ntfs_debug("Inode 0x%lx is not dirty.", mft_no); in ntfs_may_write_mft_record()
995 "not write it.", mft_no); in ntfs_may_write_mft_record()
1001 mft_no); in ntfs_may_write_mft_record()
1009 ntfs_debug("Inode 0x%lx is not in icache.", mft_no); in ntfs_may_write_mft_record()
1014 mft_no); in ntfs_may_write_mft_record()
1020 mft_no); in ntfs_may_write_mft_record()
1028 na.mft_no = MREF_LE(m->base_mft_record); in ntfs_may_write_mft_record()
1030 "inode 0x%lx in icache.", mft_no, na.mft_no); in ntfs_may_write_mft_record()
1031 if (!na.mft_no) { in ntfs_may_write_mft_record()
1036 vi = ilookup5_nowait(sb, na.mft_no, (test_t)ntfs_test_inode, in ntfs_may_write_mft_record()
1044 "extent record.", na.mft_no); in ntfs_may_write_mft_record()
1047 ntfs_debug("Base inode 0x%lx is in icache.", na.mft_no); in ntfs_may_write_mft_record()
1062 "write the extent record.", na.mft_no); in ntfs_may_write_mft_record()
1068 if (mft_no == extent_nis[i]->mft_no) { in ntfs_may_write_mft_record()
1086 mft_no, na.mft_no); in ntfs_may_write_mft_record()
1090 mft_no, na.mft_no); in ntfs_may_write_mft_record()
1102 "not write it.", mft_no); in ntfs_may_write_mft_record()
1106 mft_no); in ntfs_may_write_mft_record()
1109 mft_no); in ntfs_may_write_mft_record()
1171 data_pos = base_ni->mft_no + 1; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
2021 static int ntfs_mft_record_layout(const ntfs_volume *vol, const s64 mft_no, in ntfs_mft_record_layout() argument
2026 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); in ntfs_mft_record_layout()
2027 if (mft_no >= (1ll << 32)) { in ntfs_mft_record_layout()
2029 "maximum of 2^32.", (long long)mft_no); in ntfs_mft_record_layout()
2044 m->mft_record_number = cpu_to_le32((u32)mft_no); in ntfs_mft_record_layout()
2100 static int ntfs_mft_record_format(const ntfs_volume *vol, const s64 mft_no) in ntfs_mft_record_format() argument
2110 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2115 index = mft_no << vol->mft_record_size_bits >> PAGE_SHIFT; in ntfs_mft_record_format()
2116 ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in ntfs_mft_record_format()
2124 "record 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2132 "to format 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2139 err = ntfs_mft_record_layout(vol, mft_no, m); in ntfs_mft_record_format()
2142 (long long)mft_no); in ntfs_mft_record_format()
2272 (long long)base_ni->mft_no); in ntfs_mft_record_alloc()
2447 s64 new_initialized_size, mft_no; in ntfs_mft_record_alloc() local
2451 mft_no = mft_ni->initialized_size >> vol->mft_record_size_bits; in ntfs_mft_record_alloc()
2456 (long long)mft_no); in ntfs_mft_record_alloc()
2457 err = ntfs_mft_record_format(vol, mft_no); in ntfs_mft_record_alloc()
2595 m->base_mft_record = MK_LE_MREF(base_ni->mft_no, in ntfs_mft_record_alloc()
2789 unsigned long mft_no = ni->mft_no; in ntfs_extent_mft_record_free() local
2807 mft_no, base_ni->mft_no); in ntfs_extent_mft_record_free()
2814 "not freeing.", base_ni->mft_no); in ntfs_extent_mft_record_free()
2837 "its base inode 0x%lx.", mft_no, in ntfs_extent_mft_record_free()
2838 base_ni->mft_no); in ntfs_extent_mft_record_free()
2868 "freeing.", mft_no); in ntfs_extent_mft_record_free()
2878 err = ntfs_bitmap_clear_bit(vol->mftbmp_ino, mft_no); in ntfs_extent_mft_record_free()