• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ntfs/

Lines Matching refs:mft_no

56 	index = (u64)ni->mft_no << vol->mft_record_size_bits >>
58 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK;
72 "driver.", ni->mft_no);
87 "Run chkdsk.", ni->mft_no);
152 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no);
212 ntfs_debug("Entering for mft_no 0x%lx.", ni->mft_no);
246 unsigned long mft_no = MREF(mref);
251 mft_no, base_ni->mft_no);
263 if (mft_no != extent_nis[i]->mft_no)
297 ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no);
393 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no);
413 * @mft_no: mft record number of mft record to synchronize
417 * number @mft_no to the mft mirror ($MFTMirr) of the ntfs volume @vol,
433 const unsigned long mft_no, MFT_RECORD *m)
444 * @mft_no: mft record number of mft record to synchronize
449 * number @mft_no to the mft mirror ($MFTMirr) of the ntfs volume @vol.
459 int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no,
473 ntfs_debug("Entering for inode 0x%lx.", mft_no);
477 err = ntfs_sync_mft_mirror_umount(vol, mft_no, m);
483 page = ntfs_map_page(vol->mftmirr_ino->i_mapping, mft_no >>
494 page_ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK;
534 vcn = ((VCN)mft_no << vol->mft_record_size_bits) +
565 "%lli).", mft_no,
621 "record 0x%lx!", mft_no);
676 ntfs_debug("Entering for inode 0x%lx.", ni->mft_no);
723 vcn = ((VCN)ni->mft_no << vol->mft_record_size_bits) +
749 ni->mft_no, (long long)lcn);
785 if (!sync && ni->mft_no < vol->mftmirr_size)
786 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync);
803 if (sync && ni->mft_no < vol->mftmirr_size)
804 ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync);
813 ni->mft_no);
843 * @mft_no: [IN] mft record number of the mft record to check
848 * @mft_no belonging to the ntfs volume @vol may be written out. If necessary
919 bool ntfs_may_write_mft_record(ntfs_volume *vol, const unsigned long mft_no,
929 ntfs_debug("Entering for inode 0x%lx.", mft_no);
939 ntfs_debug("Looking for inode 0x%lx in icache.", mft_no);
940 na.mft_no = mft_no;
948 if (!mft_no) {
960 vi = ilookup5_nowait(sb, mft_no, (test_t)ntfs_test_inode, &na);
963 ntfs_debug("Base inode 0x%lx is in icache.", mft_no);
971 mft_no);
976 ntfs_debug("Inode 0x%lx is not dirty.", mft_no);
980 "not write it.", mft_no);
986 mft_no);
994 ntfs_debug("Inode 0x%lx is not in icache.", mft_no);
999 mft_no);
1005 mft_no);
1013 na.mft_no = MREF_LE(m->base_mft_record);
1015 "inode 0x%lx in icache.", mft_no, na.mft_no);
1016 if (!na.mft_no) {
1021 vi = ilookup5_nowait(sb, na.mft_no, (test_t)ntfs_test_inode,
1029 "extent record.", na.mft_no);
1032 ntfs_debug("Base inode 0x%lx is in icache.", na.mft_no);
1047 "write the extent record.", na.mft_no);
1053 if (mft_no == extent_nis[i]->mft_no) {
1071 mft_no, na.mft_no);
1075 mft_no, na.mft_no);
1087 "not write it.", mft_no);
1091 mft_no);
1094 mft_no);
1156 data_pos = base_ni->mft_no + 1;
1996 * @mft_no: mft reference specifying the mft record number
1999 * Layout an empty, unused mft record with the mft record number @mft_no into
2006 static int ntfs_mft_record_layout(const ntfs_volume *vol, const s64 mft_no,
2011 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no);
2012 if (mft_no >= (1ll << 32)) {
2014 "maximum of 2^32.", (long long)mft_no);
2029 m->mft_record_number = cpu_to_le32((u32)mft_no);
2077 * @mft_no: mft record number to format
2079 * Format the mft record @mft_no in $MFT/$DATA, i.e. lay out an empty, unused
2085 static int ntfs_mft_record_format(const ntfs_volume *vol, const s64 mft_no)
2095 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no);
2100 index = mft_no << vol->mft_record_size_bits >> PAGE_CACHE_SHIFT;
2101 ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK;
2109 "record 0x%llx.", (long long)mft_no);
2117 "to format 0x%llx.", (long long)mft_no);
2124 err = ntfs_mft_record_layout(vol, mft_no, m);
2127 (long long)mft_no);
2257 (long long)base_ni->mft_no);
2432 s64 new_initialized_size, mft_no;
2436 mft_no = mft_ni->initialized_size >> vol->mft_record_size_bits;
2441 (long long)mft_no);
2442 err = ntfs_mft_record_format(vol, mft_no);
2578 m->base_mft_record = MK_LE_MREF(base_ni->mft_no,
2777 unsigned long mft_no = ni->mft_no;
2795 mft_no, base_ni->mft_no);
2802 "not freeing.", base_ni->mft_no);
2825 "its base inode 0x%lx.", mft_no,
2826 base_ni->mft_no);
2856 "freeing.", mft_no);
2866 err = ntfs_bitmap_clear_bit(vol->mftbmp_ino, mft_no);