Lines Matching full:ni
239 struct ntfs_inode *ni = ntfs_i(dir); in dir_search_u() local
254 err = indx_find(&ni->dir, ni, NULL, uni, 0, sbi, &diff, &e, fnd); in dir_search_u()
279 struct ntfs_inode *ni, const struct NTFS_DE *e, in ntfs_dir_emit() argument
292 if (!mi_is_ref(&ni->mi, &fname->home)) in ntfs_dir_emit()
334 ino != ni->mi.rno) { in ntfs_dir_emit()
352 static int ntfs_read_hdr(struct ntfs_sb_info *sbi, struct ntfs_inode *ni, in ntfs_read_hdr() argument
383 if (!ntfs_dir_emit(sbi, ni, e, name, ctx)) { in ntfs_read_hdr()
405 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_readdir() local
412 u8 index_bits = ni->dir.index_bits; in ntfs_readdir()
430 if (!ni->mi_loaded && ni->attr_list.size) { in ntfs_readdir()
433 * Load all subrecords to avoid 'write' access to 'ni' during in ntfs_readdir()
436 ni_lock(ni); in ntfs_readdir()
437 if (!ni->mi_loaded && ni->attr_list.size) { in ntfs_readdir()
438 err = ni_load_all_mi(ni); in ntfs_readdir()
440 ni->mi_loaded = true; in ntfs_readdir()
442 ni_unlock(ni); in ntfs_readdir()
447 root = indx_get_root(&ni->dir, ni, NULL, NULL); in ntfs_readdir()
456 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx); in ntfs_readdir()
474 err = indx_used_bit(&ni->dir, ni, &bit); in ntfs_readdir()
489 err = indx_read(&ni->dir, ni, bit << ni->dir.idx2vbn_bits, in ntfs_readdir()
494 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr, in ntfs_readdir()
526 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_dir_count() local
534 size_t max_indx = i_size_read(&ni->vfs_inode) >> ni->dir.index_bits; in ntfs_dir_count()
539 root = indx_get_root(&ni->dir, ni, NULL, NULL); in ntfs_dir_count()
583 err = indx_used_bit(&ni->dir, ni, &bit); in ntfs_dir_count()
593 err = indx_read(&ni->dir, ni, bit << ni->dir.idx2vbn_bits, in ntfs_dir_count()