Lines Matching refs:ni
66 ntfs_inode *ni;
333 if (tofree->ni) {
334 ntfs_inode_close(tofree->ni);
335 tofree->ni = NULL;
364 * @ni: ntfs inode of the directory to list
376 static int readdir_recursive(ntfs_inode * ni, s64 * pos, ntfsls_dirent * dirent)
381 .ni = NULL,
412 result = ntfs_readdir(ni, pos, dirent, (ntfs_filldir_t) list_dir_entry);
417 /* for each of ni's sub-dirs: list in this iteration, then
426 /* subdir is not a subdir of ni */
432 if (!subdir->ni) {
433 subdir->ni =
434 ntfs_pathname_to_inode(ni->vol, ni,
437 if (!subdir->ni) {
462 result = readdir_recursive(subdir->ni, &pos2, dirent);
538 dir->ni = NULL;
551 ntfs_inode *ni;
560 ni = ntfs_inode_open(dirent->vol, mref);
561 if (!ni)
564 ctx = ntfs_attr_get_search_ctx(ni, NULL);
600 dir->ni = ni;
601 ni = NULL; /* so release does not close inode */
609 if (ni)
610 ntfs_inode_close(ni);
643 ntfs_inode *ni;
662 ni = ntfs_pathname_to_inode(vol, NULL, opts.path);
663 if (!ni) {
676 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
678 readdir_recursive(ni, &pos, &dirent);
680 ntfs_readdir(ni, &pos, &dirent,
691 ctx = ntfs_attr_get_search_ctx(ni, NULL);
706 list_dir_entry(&dirent, name, name_len, space, pos, ni->mft_no,
714 ntfs_inode_close(ni);