Lines Matching refs: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()
275 static inline int ntfs_filldir(struct ntfs_sb_info *sbi, struct ntfs_inode *ni, in ntfs_filldir() argument
289 if (!mi_is_ref(&ni->mi, &fname->home)) in ntfs_filldir()
320 static int ntfs_read_hdr(struct ntfs_sb_info *sbi, struct ntfs_inode *ni, in ntfs_read_hdr() argument
352 err = ntfs_filldir(sbi, ni, e, name, ctx); in ntfs_read_hdr()
373 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_readdir() local
380 u8 index_bits = ni->dir.index_bits; in ntfs_readdir()
398 if (!ni->mi_loaded && ni->attr_list.size) { in ntfs_readdir()
404 ni_lock(ni); in ntfs_readdir()
405 if (!ni->mi_loaded && ni->attr_list.size) { in ntfs_readdir()
406 err = ni_load_all_mi(ni); in ntfs_readdir()
408 ni->mi_loaded = true; in ntfs_readdir()
410 ni_unlock(ni); in ntfs_readdir()
415 root = indx_get_root(&ni->dir, ni, NULL, NULL); in ntfs_readdir()
424 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx); in ntfs_readdir()
442 err = indx_used_bit(&ni->dir, ni, &bit); in ntfs_readdir()
458 err = indx_read(&ni->dir, ni, bit << ni->dir.idx2vbn_bits, in ntfs_readdir()
463 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr, in ntfs_readdir()
488 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_dir_count() local
496 loff_t i_size = ni->vfs_inode.i_size; in ntfs_dir_count()
498 u8 index_bits = ni->dir.index_bits; in ntfs_dir_count()
503 root = indx_get_root(&ni->dir, ni, NULL, NULL); in ntfs_dir_count()
545 err = indx_used_bit(&ni->dir, ni, &bit); in ntfs_dir_count()
556 err = indx_read(&ni->dir, ni, bit << ni->dir.idx2vbn_bits, in ntfs_dir_count()
563 vbo = (u64)bit << ni->dir.idx2vbn_bits; in ntfs_dir_count()