Lines Matching refs:dir_ni
67 MFT_REF ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const ntfschar *uname, in ntfs_lookup_inode_by_name() argument
70 ntfs_volume *vol = dir_ni->vol; in ntfs_lookup_inode_by_name()
86 BUG_ON(!S_ISDIR(VFS_I(dir_ni)->i_mode)); in ntfs_lookup_inode_by_name()
87 BUG_ON(NInoAttr(dir_ni)); in ntfs_lookup_inode_by_name()
89 m = map_mft_record(dir_ni); in ntfs_lookup_inode_by_name()
95 ctx = ntfs_attr_get_search_ctx(dir_ni, m); in ntfs_lookup_inode_by_name()
107 dir_ni->mft_no); in ntfs_lookup_inode_by_name()
178 unmap_mft_record(dir_ni); in ntfs_lookup_inode_by_name()
277 unmap_mft_record(dir_ni); in ntfs_lookup_inode_by_name()
285 if (!NInoIndexAllocPresent(dir_ni)) { in ntfs_lookup_inode_by_name()
288 "corrupt or driver bug.", dir_ni->mft_no); in ntfs_lookup_inode_by_name()
293 ia_mapping = VFS_I(dir_ni)->i_mapping; in ntfs_lookup_inode_by_name()
299 unmap_mft_record(dir_ni); in ntfs_lookup_inode_by_name()
309 dir_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_lookup_inode_by_name()
321 dir_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_lookup_inode_by_name()
325 "inode 0x%lx or driver bug.", dir_ni->mft_no); in ntfs_lookup_inode_by_name()
332 (unsigned long long)vcn, dir_ni->mft_no); in ntfs_lookup_inode_by_name()
341 (unsigned long long)vcn, dir_ni->mft_no); in ntfs_lookup_inode_by_name()
345 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
350 (unsigned long long)vcn, dir_ni->mft_no, in ntfs_lookup_inode_by_name()
352 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name()
355 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name()
361 dir_ni->mft_no); in ntfs_lookup_inode_by_name()
365 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
368 (unsigned long long)vcn, dir_ni->mft_no); in ntfs_lookup_inode_by_name()
387 dir_ni->mft_no); in ntfs_lookup_inode_by_name()
538 dir_ni->mft_no); in ntfs_lookup_inode_by_name()
558 "0x%lx.", dir_ni->mft_no); in ntfs_lookup_inode_by_name()
582 unmap_mft_record(dir_ni); in ntfs_lookup_inode_by_name()
620 u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const ntfschar *uname,
623 ntfs_volume *vol = dir_ni->vol;
640 m = map_mft_record(dir_ni);
646 ctx = ntfs_attr_get_search_ctx(dir_ni, m);
658 dir_ni->mft_no);
712 unmap_mft_record(dir_ni);
763 if (!NInoIndexAllocPresent(dir_ni)) {
766 "corrupt or driver bug.", dir_ni->mft_no);
771 ia_mapping = VFS_I(dir_ni)->i_mapping;
777 unmap_mft_record(dir_ni);
787 dir_ni->itype.index.vcn_size_bits >> PAGE_SHIFT);
799 dir_ni->itype.index.vcn_size_bits) & ~PAGE_MASK));
803 "inode 0x%lx or driver bug.", dir_ni->mft_no);
810 (unsigned long long)vcn, dir_ni->mft_no);
819 (unsigned long long)vcn, dir_ni->mft_no);
823 dir_ni->itype.index.block_size) {
828 (unsigned long long)vcn, dir_ni->mft_no,
830 dir_ni->itype.index.block_size);
833 index_end = (u8*)ia + dir_ni->itype.index.block_size;
839 dir_ni->mft_no);
843 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) {
846 (unsigned long long)vcn, dir_ni->mft_no);
865 dir_ni->mft_no);
948 dir_ni->mft_no);
967 "0x%lx.", dir_ni->mft_no);
982 unmap_mft_record(dir_ni);