···19081908 err2 = attr_size;19091909 attr_size = arec_size - mp_ofs;19101910 ntfs_error(vol->sb,19111911- "Failed to undo partial resident to non-resident attribute conversion. Truncating inode 0x%lx, attribute type 0x%x from %i bytes to %i bytes to maintain metadata consistency. THIS MEANS YOU ARE LOSING %i BYTES DATA FROM THIS %s.",19121912- vi->i_ino,19111911+ "Failed to undo partial resident to non-resident attribute conversion. Truncating inode 0x%llx, attribute type 0x%x from %i bytes to %i bytes to maintain metadata consistency. THIS MEANS YOU ARE LOSING %i BYTES DATA FROM THIS %s.",19121912+ ni->mft_no,19131913 (unsigned int)le32_to_cpu(ni->type),19141914 err2, attr_size, err2 - attr_size,19151915 ((ni->type == AT_DATA) &&
+2-2
fs/ntfs/bitmap.c
···130130 struct ntfs_inode *ni = NTFS_I(vi);131131 struct ntfs_volume *vol = ni->vol;132132133133- ntfs_debug("Entering for i_ino 0x%lx, start_bit 0x%llx, count 0x%llx, value %u.%s",134134- vi->i_ino, (unsigned long long)start_bit,133133+ ntfs_debug("Entering for i_ino 0x%llx, start_bit 0x%llx, count 0x%llx, value %u.%s",134134+ ni->mft_no, (unsigned long long)start_bit,135135 (unsigned long long)cnt, (unsigned int)value,136136 is_rollback ? " (rollback)" : "");137137
+5-5
fs/ntfs/dir.c
···767767 struct rb_root ra_root = RB_ROOT;768768 struct file_ra_state *ra;769769770770- ntfs_debug("Entering for inode 0x%lx, fpos 0x%llx.",771771- vdir->i_ino, actor->pos);770770+ ntfs_debug("Entering for inode 0x%llx, fpos 0x%llx.",771771+ ndir->mft_no, actor->pos);772772773773 if (file->private_data) {774774 private = file->private_data;···11481148 int err, ret;11491149 struct ntfs_attr na;1150115011511151- ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);11511151+ ntfs_debug("Entering for inode 0x%llx.", ni->mft_no);1152115211531153 if (NVolShutdown(vol))11541154 return -EIO;···12151215 ntfs_debug("Done.");12161216 else12171217 ntfs_warning(vi->i_sb,12181218- "Failed to f%ssync inode 0x%lx. Error %u.",12191219- datasync ? "data" : "", vi->i_ino, -ret);12181218+ "Failed to f%ssync inode 0x%llx. Error %u.",12191219+ datasync ? "data" : "", ni->mft_no, -ret);12201220 inode_unlock(vi);12211221 return ret;12221222}
+3-3
fs/ntfs/file.c
···163163 struct inode *parent_vi, *ia_vi;164164 struct ntfs_attr_search_ctx *ctx;165165166166- ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);166166+ ntfs_debug("Entering for inode 0x%llx.", ni->mft_no);167167168168 if (NVolShutdown(vol))169169 return -EIO;···242242 ntfs_debug("Done.");243243 else244244 ntfs_warning(vi->i_sb,245245- "Failed to f%ssync inode 0x%lx. Error %u.",246246- datasync ? "data" : "", vi->i_ino, -ret);245245+ "Failed to f%ssync inode 0x%llx. Error %u.",246246+ datasync ? "data" : "", ni->mft_no, -ret);247247 if (!ret)248248 blkdev_issue_flush(vi->i_sb->s_bdev);249249 return ret;
+21-22
fs/ntfs/inode.c
···670670static int ntfs_read_locked_inode(struct inode *vi)671671{672672 struct ntfs_volume *vol = NTFS_SB(vi->i_sb);673673- struct ntfs_inode *ni;673673+ struct ntfs_inode *ni = NTFS_I(vi);674674 struct mft_record *m;675675 struct attr_record *a;676676 struct standard_information *si;···682682 dev_t dev = 0;683683 bool vol_err = true;684684685685- ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);685685+ ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);686686687687 if (uid_valid(vol->uid)) {688688 vi->i_uid = vol->uid;···704704 */705705 if (vi->i_ino != FILE_MFT)706706 ntfs_init_big_inode(vi);707707- ni = NTFS_I(vi);708707709708 m = map_mft_record(ni);710709 if (IS_ERR(m)) {···803804 } else {804805 if (vi->i_ino == FILE_MFT)805806 goto skip_attr_list_load;806806- ntfs_debug("Attribute list found in inode 0x%lx.", vi->i_ino);807807+ ntfs_debug("Attribute list found in inode 0x%llx.", ni->mft_no);807808 NInoSetAttrList(ni);808809 a = ctx->attr;809810 if (a->flags & ATTR_COMPRESSION_MASK) {···819820 goto unm_err_out;820821 }821822 ntfs_warning(vi->i_sb,822822- "Resident attribute list attribute in inode 0x%lx is marked encrypted/sparse which is not true. However, Windows allows this and chkdsk does not detect or correct it so we will just ignore the invalid flags and pretend they are not set.",823823- vi->i_ino);823823+ "Resident attribute list attribute in inode 0x%llx is marked encrypted/sparse which is not true. However, Windows allows this and chkdsk does not detect or correct it so we will just ignore the invalid flags and pretend they are not set.",824824+ ni->mft_no);824825 }825826 /* Now allocate memory for the attribute list. */826827 ni->attr_list_size = (u32)ntfs_attr_size(a);···12241225err_out:12251226 if (err != -EOPNOTSUPP && err != -ENOMEM && vol_err == true) {12261227 ntfs_error(vol->sb,12271227- "Failed with error code %i. Marking corrupt inode 0x%lx as bad. Run chkdsk.",12281228- err, vi->i_ino);12281228+ "Failed with error code %i. Marking corrupt inode 0x%llx as bad. Run chkdsk.",12291229+ err, ni->mft_no);12291230 NVolSetErrors(vol);12301231 }12311232 return err;···12611262 struct ntfs_attr_search_ctx *ctx;12621263 int err = 0;1263126412641264- ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);12651265+ ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);1265126612661267 ntfs_init_big_inode(vi);12671268···15031504 u8 *ir_end, *index_end;15041505 int err = 0;1505150615061506- ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);15071507+ ntfs_debug("Entering for i_ino 0x%llx.", ni->mft_no);15071508 lockdep_assert_held(&base_ni->mrec_lock);1508150915091510 ntfs_init_big_inode(vi);···23112312 ntfs_commit_inode(vi);2312231323132314 if (NInoDirty(ni)) {23142314- ntfs_debug("Failed to commit dirty inode 0x%lx. Losing data!",23152315- vi->i_ino);23152315+ ntfs_debug("Failed to commit dirty inode 0x%llx. Losing data!",23162316+ ni->mft_no);23162317 NInoClearAttrListDirty(ni);23172318 NInoClearDirty(ni);23182319 }···24992500 /* Update the creation times if they have changed. */25002501 nt = utc2ntfs(ni->i_crtime);25012502 if (si->creation_time != nt) {25022502- ntfs_debug("Updating creation time for inode 0x%lx: old = 0x%llx, new = 0x%llx",25032503- vi->i_ino, le64_to_cpu(si->creation_time),25032503+ ntfs_debug("Updating creation time for inode 0x%llx: old = 0x%llx, new = 0x%llx",25042504+ ni->mft_no, le64_to_cpu(si->creation_time),25042505 le64_to_cpu(nt));25052506 si->creation_time = nt;25062507 modified = true;···25092510 /* Update the access times if they have changed. */25102511 nt = utc2ntfs(inode_get_mtime(vi));25112512 if (si->last_data_change_time != nt) {25122512- ntfs_debug("Updating mtime for inode 0x%lx: old = 0x%llx, new = 0x%llx",25132513- vi->i_ino, le64_to_cpu(si->last_data_change_time),25132513+ ntfs_debug("Updating mtime for inode 0x%llx: old = 0x%llx, new = 0x%llx",25142514+ ni->mft_no, le64_to_cpu(si->last_data_change_time),25142515 le64_to_cpu(nt));25152516 si->last_data_change_time = nt;25162517 modified = true;···2518251925192520 nt = utc2ntfs(inode_get_ctime(vi));25202521 if (si->last_mft_change_time != nt) {25212521- ntfs_debug("Updating ctime for inode 0x%lx: old = 0x%llx, new = 0x%llx",25222522- vi->i_ino, le64_to_cpu(si->last_mft_change_time),25222522+ ntfs_debug("Updating ctime for inode 0x%llx: old = 0x%llx, new = 0x%llx",25232523+ ni->mft_no, le64_to_cpu(si->last_mft_change_time),25232524 le64_to_cpu(nt));25242525 si->last_mft_change_time = nt;25252526 modified = true;25262527 }25272528 nt = utc2ntfs(inode_get_atime(vi));25282529 if (si->last_access_time != nt) {25292529- ntfs_debug("Updating atime for inode 0x%lx: old = 0x%llx, new = 0x%llx",25302530- vi->i_ino,25302530+ ntfs_debug("Updating atime for inode 0x%llx: old = 0x%llx, new = 0x%llx",25312531+ ni->mft_no,25312532 le64_to_cpu(si->last_access_time),25322533 le64_to_cpu(nt));25332534 si->last_access_time = nt;···27422743 int err = 0;27432744 bool need_iput = false;2744274527452745- ntfs_debug("Entering for %sinode 0x%lx.", NInoAttr(ni) ? "attr " : "",27462746- vi->i_ino);27462746+ ntfs_debug("Entering for %sinode 0x%llx.", NInoAttr(ni) ? "attr " : "",27472747+ ni->mft_no);2747274827482749 if (NVolShutdown(ni->vol))27492750 return -EIO;
+2-2
fs/ntfs/mft.c
···27172717 struct runlist_element *rl;27182718 loff_t i_size = i_size_read(vi);2719271927202720- ntfs_debug("Entering for inode 0x%lx, attribute type 0x%x, folio index 0x%lx.",27212721- vi->i_ino, ni->type, folio->index);27202720+ ntfs_debug("Entering for inode 0x%llx, attribute type 0x%x, folio index 0x%lx.",27212721+ ni->mft_no, ni->type, folio->index);2722272227232723 if (!locked_nis || !ref_inos)27242724 return -ENOMEM;
+5-5
fs/ntfs/namei.c
···178178 unsigned long dent_ino;179179 int uname_len;180180181181- ntfs_debug("Looking up %pd in directory inode 0x%lx.",182182- dent, dir_ino->i_ino);181181+ ntfs_debug("Looking up %pd in directory inode 0x%llx.",182182+ dent, NTFS_I(dir_ino)->mft_no);183183 /* Convert the name of the dentry to Unicode. */184184 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len,185185 &uname, NTFS_MAX_NAME_LEN);···16111611 unsigned long parent_ino;16121612 int err;1613161316141614- ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);16141614+ ntfs_debug("Entering for inode 0x%llx.", ni->mft_no);16151615 /* Get the mft record of the inode belonging to the child dentry. */16161616 mrec = map_mft_record(ni);16171617 if (IS_ERR(mrec))···16301630 unmap_mft_record(ni);16311631 if (err == -ENOENT)16321632 ntfs_error(vi->i_sb,16331633- "Inode 0x%lx does not have a file name attribute. Run chkdsk.",16341634- vi->i_ino);16331633+ "Inode 0x%llx does not have a file name attribute. Run chkdsk.",16341634+ ni->mft_no);16351635 return ERR_PTR(err);16361636 }16371637 attr = ctx->attr;