Lines Matching full:ni

17  * ni  - NTFS inode              - Extends linux inode. consists of one or more mft inodes.
564 struct ntfs_inode *ni = alloc_inode_sb(sb, ntfs_inode_cachep, GFP_NOFS); in ntfs_alloc_inode() local
566 if (!ni) in ntfs_alloc_inode()
569 memset(ni, 0, offsetof(struct ntfs_inode, vfs_inode)); in ntfs_alloc_inode()
570 mutex_init(&ni->ni_lock); in ntfs_alloc_inode()
571 return &ni->vfs_inode; in ntfs_alloc_inode()
576 struct ntfs_inode *ni = ntfs_i(inode); in ntfs_free_inode() local
578 mutex_destroy(&ni->ni_lock); in ntfs_free_inode()
579 kmem_cache_free(ntfs_inode_cachep, ni); in ntfs_free_inode()
584 struct ntfs_inode *ni = foo; in init_once() local
586 inode_init_once(&ni->vfs_inode); in init_once()
597 if (sbi->mft.ni) { in ntfs3_put_sbi()
598 iput(&sbi->mft.ni->vfs_inode); in ntfs3_put_sbi()
599 sbi->mft.ni = NULL; in ntfs3_put_sbi()
602 if (sbi->security.ni) { in ntfs3_put_sbi()
603 iput(&sbi->security.ni->vfs_inode); in ntfs3_put_sbi()
604 sbi->security.ni = NULL; in ntfs3_put_sbi()
607 if (sbi->reparse.ni) { in ntfs3_put_sbi()
608 iput(&sbi->reparse.ni->vfs_inode); in ntfs3_put_sbi()
609 sbi->reparse.ni = NULL; in ntfs3_put_sbi()
612 if (sbi->objid.ni) { in ntfs3_put_sbi()
613 iput(&sbi->objid.ni->vfs_inode); in ntfs3_put_sbi()
614 sbi->objid.ni = NULL; in ntfs3_put_sbi()
617 if (sbi->volume.ni) { in ntfs3_put_sbi()
618 iput(&sbi->volume.ni->vfs_inode); in ntfs3_put_sbi()
619 sbi->volume.ni = NULL; in ntfs3_put_sbi()
738 struct ntfs_inode *ni; in ntfs_sync_fs() local
744 ni = sbi->security.ni; in ntfs_sync_fs()
745 if (ni) { in ntfs_sync_fs()
746 inode = &ni->vfs_inode; in ntfs_sync_fs()
752 ni = sbi->objid.ni; in ntfs_sync_fs()
753 if (ni) { in ntfs_sync_fs()
754 inode = &ni->vfs_inode; in ntfs_sync_fs()
760 ni = sbi->reparse.ni; in ntfs_sync_fs()
761 if (ni) { in ntfs_sync_fs()
762 inode = &ni->vfs_inode; in ntfs_sync_fs()
1162 struct ntfs_inode *ni; in ntfs_fill_super() local
1209 * 'cause 'sbi->volume.ni' is used in 'ntfs_set_state'. in ntfs_fill_super()
1220 ni = ntfs_i(inode); in ntfs_fill_super()
1223 attr = ni_find_attr(ni, NULL, NULL, ATTR_LABEL, NULL, 0, NULL, NULL); in ntfs_fill_super()
1241 attr = ni_find_attr(ni, attr, NULL, ATTR_VOL_INFO, NULL, 0, NULL, NULL); in ntfs_fill_super()
1252 sbi->volume.ni = ni; in ntfs_fill_super()
1283 ni = ntfs_i(inode); in ntfs_fill_super()
1285 err = ntfs_loadlog_and_replay(ni, sbi); in ntfs_fill_super()
1314 ni = ntfs_i(inode); in ntfs_fill_super()
1316 sbi->mft.used = ni->i_valid >> sbi->record_bits; in ntfs_fill_super()
1324 err = ni_load_all_mi(ni); in ntfs_fill_super()
1330 sbi->mft.ni = ni; in ntfs_fill_super()
1382 ni = ntfs_i(inode); in ntfs_fill_super()
1384 for (i = 0; run_get_entry(&ni->file.run, i, &vcn, &lcn, &len); i++) { in ntfs_fill_super()