Lines Matching refs:mft_no

52 	index = (u64)ni->mft_no << vol->mft_record_size_bits >>  in map_mft_record_page()
54 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page()
68 "driver.", ni->mft_no); in map_mft_record_page()
83 "Run chkdsk.", ni->mft_no); in map_mft_record_page()
148 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no); in map_mft_record()
208 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no); in unmap_mft_record()
242 unsigned long mft_no = MREF(mref); in map_extent_mft_record() local
247 mft_no, base_ni->mft_no); in map_extent_mft_record()
259 if (mft_no != extent_nis[i]->mft_no) in map_extent_mft_record()
293 ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no); in map_extent_mft_record()
388 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no); in __mark_mft_record_dirty()
428 const unsigned long mft_no, MFT_RECORD *m) in ntfs_sync_mft_mirror_umount() argument
454 int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no, in ntfs_sync_mft_mirror() argument
468 ntfs_debug("Entering for inode 0x%lx.", mft_no); in ntfs_sync_mft_mirror()
474 err = ntfs_sync_mft_mirror_umount(vol, mft_no, m); in ntfs_sync_mft_mirror()
480 page = ntfs_map_page(vol->mftmirr_ino->i_mapping, mft_no >> in ntfs_sync_mft_mirror()
491 page_ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in ntfs_sync_mft_mirror()
531 vcn = ((VCN)mft_no << vol->mft_record_size_bits) + in ntfs_sync_mft_mirror()
562 "%lli).", mft_no, in ntfs_sync_mft_mirror()
618 "record 0x%lx!", mft_no); in ntfs_sync_mft_mirror()
673 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no); in write_mft_record_nolock()
724 vcn = ((VCN)ni->mft_no << vol->mft_record_size_bits) + in write_mft_record_nolock()
750 ni->mft_no, (long long)lcn); in write_mft_record_nolock()
786 if (!sync && ni->mft_no < vol->mftmirr_size) in write_mft_record_nolock()
787 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync); in write_mft_record_nolock()
804 if (sync && ni->mft_no < vol->mftmirr_size) in write_mft_record_nolock()
805 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync); in write_mft_record_nolock()
814 ni->mft_no); in write_mft_record_nolock()
920 bool ntfs_may_write_mft_record(ntfs_volume *vol, const unsigned long mft_no, in ntfs_may_write_mft_record() argument
930 ntfs_debug("Entering for inode 0x%lx.", mft_no); in ntfs_may_write_mft_record()
940 ntfs_debug("Looking for inode 0x%lx in icache.", mft_no); in ntfs_may_write_mft_record()
941 na.mft_no = mft_no; in ntfs_may_write_mft_record()
949 if (!mft_no) { in ntfs_may_write_mft_record()
961 vi = ilookup5_nowait(sb, mft_no, ntfs_test_inode, &na); in ntfs_may_write_mft_record()
964 ntfs_debug("Base inode 0x%lx is in icache.", mft_no); in ntfs_may_write_mft_record()
972 mft_no); in ntfs_may_write_mft_record()
977 ntfs_debug("Inode 0x%lx is not dirty.", mft_no); in ntfs_may_write_mft_record()
981 "not write it.", mft_no); in ntfs_may_write_mft_record()
987 mft_no); in ntfs_may_write_mft_record()
995 ntfs_debug("Inode 0x%lx is not in icache.", mft_no); in ntfs_may_write_mft_record()
1000 mft_no); in ntfs_may_write_mft_record()
1006 mft_no); in ntfs_may_write_mft_record()
1014 na.mft_no = MREF_LE(m->base_mft_record); in ntfs_may_write_mft_record()
1016 "inode 0x%lx in icache.", mft_no, na.mft_no); in ntfs_may_write_mft_record()
1017 if (!na.mft_no) { in ntfs_may_write_mft_record()
1022 vi = ilookup5_nowait(sb, na.mft_no, ntfs_test_inode, in ntfs_may_write_mft_record()
1030 "extent record.", na.mft_no); in ntfs_may_write_mft_record()
1033 ntfs_debug("Base inode 0x%lx is in icache.", na.mft_no); in ntfs_may_write_mft_record()
1048 "write the extent record.", na.mft_no); in ntfs_may_write_mft_record()
1054 if (mft_no == extent_nis[i]->mft_no) { in ntfs_may_write_mft_record()
1072 mft_no, na.mft_no); in ntfs_may_write_mft_record()
1076 mft_no, na.mft_no); in ntfs_may_write_mft_record()
1088 "not write it.", mft_no); in ntfs_may_write_mft_record()
1092 mft_no); in ntfs_may_write_mft_record()
1095 mft_no); in ntfs_may_write_mft_record()
1157 data_pos = base_ni->mft_no + 1; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
2007 static int ntfs_mft_record_layout(const ntfs_volume *vol, const s64 mft_no, in ntfs_mft_record_layout() argument
2012 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); in ntfs_mft_record_layout()
2013 if (mft_no >= (1ll << 32)) { in ntfs_mft_record_layout()
2015 "maximum of 2^32.", (long long)mft_no); in ntfs_mft_record_layout()
2030 m->mft_record_number = cpu_to_le32((u32)mft_no); in ntfs_mft_record_layout()
2086 static int ntfs_mft_record_format(const ntfs_volume *vol, const s64 mft_no) in ntfs_mft_record_format() argument
2096 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2101 index = mft_no << vol->mft_record_size_bits >> PAGE_SHIFT; in ntfs_mft_record_format()
2102 ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in ntfs_mft_record_format()
2110 "record 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2118 "to format 0x%llx.", (long long)mft_no); in ntfs_mft_record_format()
2125 err = ntfs_mft_record_layout(vol, mft_no, m); in ntfs_mft_record_format()
2128 (long long)mft_no); in ntfs_mft_record_format()
2258 (long long)base_ni->mft_no); in ntfs_mft_record_alloc()
2433 s64 new_initialized_size, mft_no; in ntfs_mft_record_alloc() local
2437 mft_no = mft_ni->initialized_size >> vol->mft_record_size_bits; in ntfs_mft_record_alloc()
2442 (long long)mft_no); in ntfs_mft_record_alloc()
2443 err = ntfs_mft_record_format(vol, mft_no); in ntfs_mft_record_alloc()
2581 m->base_mft_record = MK_LE_MREF(base_ni->mft_no, in ntfs_mft_record_alloc()
2775 unsigned long mft_no = ni->mft_no; in ntfs_extent_mft_record_free() local
2793 mft_no, base_ni->mft_no); in ntfs_extent_mft_record_free()
2800 "not freeing.", base_ni->mft_no); in ntfs_extent_mft_record_free()
2823 "its base inode 0x%lx.", mft_no, in ntfs_extent_mft_record_free()
2824 base_ni->mft_no); in ntfs_extent_mft_record_free()
2854 "freeing.", mft_no); in ntfs_extent_mft_record_free()
2864 err = ntfs_bitmap_clear_bit(vol->mftbmp_ino, mft_no); in ntfs_extent_mft_record_free()