Lines Matching refs:ni
65 ntfs_inode *ni;
331 if (tofree->ni) {
332 ntfs_inode_close(tofree->ni);
333 tofree->ni = NULL;
362 * @ni: ntfs inode of the directory to list
374 static int readdir_recursive(ntfs_inode * ni, s64 * pos, ntfsls_dirent * dirent)
379 .ni = NULL,
410 result = ntfs_readdir(ni, pos, dirent, (ntfs_filldir_t) list_dir_entry);
415 /* for each of ni's sub-dirs: list in this iteration, then
424 /* subdir is not a subdir of ni */
430 if (!subdir->ni) {
431 subdir->ni =
432 ntfs_pathname_to_inode(ni->vol, ni,
435 if (!subdir->ni) {
460 result = readdir_recursive(subdir->ni, &pos2, dirent);
536 dir->ni = NULL;
549 ntfs_inode *ni;
558 ni = ntfs_inode_open(dirent->vol, mref);
559 if (!ni)
562 ctx = ntfs_attr_get_search_ctx(ni, NULL);
598 dir->ni = ni;
599 ni = NULL; /* so release does not close inode */
607 if (ni)
608 ntfs_inode_close(ni);
641 ntfs_inode *ni;
660 ni = ntfs_pathname_to_inode(vol, NULL, opts.path);
661 if (!ni) {
674 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
676 readdir_recursive(ni, &pos, &dirent);
678 ntfs_readdir(ni, &pos, &dirent,
689 ctx = ntfs_attr_get_search_ctx(ni, NULL);
704 list_dir_entry(&dirent, name, name_len, space, pos, ni->mft_no,
712 ntfs_inode_close(ni);