Home
last modified time | relevance | path

Searched refs:ni (Results 1 – 22 of 22) sorted by relevance

/fs/ntfs/
Dinode.c63 ntfs_inode *ni; in ntfs_test_inode() local
67 ni = NTFS_I(vi); in ntfs_test_inode()
69 if (likely(!NInoAttr(ni))) { in ntfs_test_inode()
75 if (ni->type != na->type) in ntfs_test_inode()
77 if (ni->name_len != na->name_len) in ntfs_test_inode()
79 if (na->name_len && memcmp(ni->name, na->name, in ntfs_test_inode()
107 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_locked_inode() local
111 ni->type = na->type; in ntfs_init_locked_inode()
113 NInoSetMstProtected(ni); in ntfs_init_locked_inode()
115 ni->name = na->name; in ntfs_init_locked_inode()
[all …]
Dattrib.c84 int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, ntfs_attr_search_ctx *ctx) in ntfs_map_runlist_nolock() argument
99 if (!NInoAttr(ni)) in ntfs_map_runlist_nolock()
100 base_ni = ni; in ntfs_map_runlist_nolock()
102 base_ni = ni->ext.base_ntfs_ino; in ntfs_map_runlist_nolock()
121 read_lock_irqsave(&ni->size_lock, flags); in ntfs_map_runlist_nolock()
122 allocated_size_vcn = ni->allocated_size >> in ntfs_map_runlist_nolock()
123 ni->vol->cluster_size_bits; in ntfs_map_runlist_nolock()
124 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_map_runlist_nolock()
134 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock()
135 a->name_length == ni->name_len && in ntfs_map_runlist_nolock()
[all …]
Dfile.c111 static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) in ntfs_attr_extend_initialized() argument
117 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized()
128 read_lock_irqsave(&ni->size_lock, flags); in ntfs_attr_extend_initialized()
129 old_init_size = ni->initialized_size; in ntfs_attr_extend_initialized()
131 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized()
132 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_attr_extend_initialized()
136 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized()
139 if (!NInoAttr(ni)) in ntfs_attr_extend_initialized()
140 base_ni = ni; in ntfs_attr_extend_initialized()
142 base_ni = ni->ext.base_ntfs_ino; in ntfs_attr_extend_initialized()
[all …]
Daops.c65 ntfs_inode *ni; in ntfs_end_buffer_async_read() local
70 ni = NTFS_I(vi); in ntfs_end_buffer_async_read()
80 read_lock_irqsave(&ni->size_lock, flags); in ntfs_end_buffer_async_read()
81 init_size = ni->initialized_size; in ntfs_end_buffer_async_read()
83 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_end_buffer_async_read()
107 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read()
137 if (!NInoMstProtected(ni)) { in ntfs_end_buffer_async_read()
145 rec_size = ni->itype.index.block_size; in ntfs_end_buffer_async_read()
192 ntfs_inode *ni; in ntfs_read_block() local
203 ni = NTFS_I(vi); in ntfs_read_block()
[all …]
Dmft.h32 extern MFT_RECORD *map_mft_record(ntfs_inode *ni);
33 extern void unmap_mft_record(ntfs_inode *ni);
38 static inline void unmap_extent_mft_record(ntfs_inode *ni) in unmap_extent_mft_record() argument
40 unmap_mft_record(ni); in unmap_extent_mft_record()
55 static inline void flush_dcache_mft_record_page(ntfs_inode *ni) in flush_dcache_mft_record_page() argument
57 flush_dcache_page(ni->page); in flush_dcache_mft_record_page()
60 extern void __mark_mft_record_dirty(ntfs_inode *ni);
73 static inline void mark_mft_record_dirty(ntfs_inode *ni) in mark_mft_record_dirty() argument
75 if (!NInoTestSetDirty(ni)) in mark_mft_record_dirty()
76 __mark_mft_record_dirty(ni); in mark_mft_record_dirty()
[all …]
Dmft.c47 static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni) in map_mft_record_page() argument
50 ntfs_volume *vol = ni->vol; in map_mft_record_page()
56 BUG_ON(ni->page); in map_mft_record_page()
63 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page()
65 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK; in map_mft_record_page()
79 "driver.", ni->mft_no); in map_mft_record_page()
89 ni->page = page; in map_mft_record_page()
90 ni->page_ofs = ofs; in map_mft_record_page()
94 "Run chkdsk.", ni->mft_no); in map_mft_record_page()
100 ni->page = NULL; in map_mft_record_page()
[all …]
Dinode.h183 static inline int NIno##flag(ntfs_inode *ni) \
185 return test_bit(NI_##flag, &(ni)->state); \
187 static inline void NInoSet##flag(ntfs_inode *ni) \
189 set_bit(NI_##flag, &(ni)->state); \
191 static inline void NInoClear##flag(ntfs_inode *ni) \
193 clear_bit(NI_##flag, &(ni)->state); \
200 static inline int NInoTestSet##flag(ntfs_inode *ni) \
202 return test_and_set_bit(NI_##flag, &(ni)->state); \
204 static inline int NInoTestClear##flag(ntfs_inode *ni) \
206 return test_and_clear_bit(NI_##flag, &(ni)->state); \
[all …]
Dattrib.h63 extern int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn,
65 extern int ntfs_map_runlist(ntfs_inode *ni, VCN vcn);
67 extern LCN ntfs_attr_vcn_to_lcn_nolock(ntfs_inode *ni, const VCN vcn,
70 extern runlist_element *ntfs_attr_find_vcn_nolock(ntfs_inode *ni,
89 extern ntfs_attr_search_ctx *ntfs_attr_get_search_ctx(ntfs_inode *ni,
106 extern int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size);
108 extern s64 ntfs_attr_extend_allocation(ntfs_inode *ni, s64 new_alloc_size,
111 extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt,
Dnamei.c180 ntfs_inode *ni = NTFS_I(dent_inode); in ntfs_lookup() local
198 ni = NTFS_I(dent_inode); in ntfs_lookup()
199 m = map_mft_record(ni); in ntfs_lookup()
206 ctx = ntfs_attr_get_search_ctx(ni, m); in ntfs_lookup()
246 unmap_mft_record(ni); in ntfs_lookup()
269 unmap_mft_record(ni); in ntfs_lookup()
303 ntfs_inode *ni = NTFS_I(vi); in ntfs_get_parent() local
313 mrec = map_mft_record(ni); in ntfs_get_parent()
317 ctx = ntfs_attr_get_search_ctx(ni, mrec); in ntfs_get_parent()
319 unmap_mft_record(ni); in ntfs_get_parent()
[all …]
Dcompress.c487 ntfs_inode *ni = NTFS_I(mapping->host); in ntfs_read_compressed_block() local
488 ntfs_volume *vol = ni->vol; in ntfs_read_compressed_block()
496 u32 cb_size = ni->itype.compressed.block_size; in ntfs_read_compressed_block()
511 >> ni->itype.compressed.block_size_bits; in ntfs_read_compressed_block()
531 BUG_ON(ni->type != AT_DATA); in ntfs_read_compressed_block()
532 BUG_ON(ni->name_len); in ntfs_read_compressed_block()
559 read_lock_irqsave(&ni->size_lock, flags); in ntfs_read_compressed_block()
560 i_size = i_size_read(VFS_I(ni)); in ntfs_read_compressed_block()
561 initialized_size = ni->initialized_size; in ntfs_read_compressed_block()
562 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_read_compressed_block()
[all …]
Dlcnalloc.h48 extern s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn,
107 static inline s64 ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, in ntfs_cluster_free() argument
110 return __ntfs_cluster_free(ni, start_vcn, count, ctx, false); in ntfs_cluster_free()
Dlcnalloc.c849 s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, s64 count, in __ntfs_cluster_free() argument
858 BUG_ON(!ni); in __ntfs_cluster_free()
860 "0x%llx.%s", ni->mft_no, (unsigned long long)start_vcn, in __ntfs_cluster_free()
863 vol = ni->vol; in __ntfs_cluster_free()
880 rl = ntfs_attr_find_vcn_nolock(ni, start_vcn, ctx); in __ntfs_cluster_free()
934 rl = ntfs_attr_find_vcn_nolock(ni, vcn, ctx); in __ntfs_cluster_free()
1002 delta = __ntfs_cluster_free(ni, start_vcn, total_freed, ctx, true); in __ntfs_cluster_free()
Dsuper.c376 ntfs_inode *ni = NTFS_I(vol->vol_ino); in ntfs_write_volume_flags() local
386 BUG_ON(!ni); in ntfs_write_volume_flags()
387 m = map_mft_record(ni); in ntfs_write_volume_flags()
392 ctx = ntfs_attr_get_search_ctx(ni, m); in ntfs_write_volume_flags()
407 unmap_mft_record(ni); in ntfs_write_volume_flags()
414 unmap_mft_record(ni); in ntfs_write_volume_flags()
3056 ntfs_inode *ni = (ntfs_inode *)foo; in ntfs_big_inode_init_once() local
3058 inode_init_once(VFS_I(ni)); in ntfs_big_inode_init_once()
/fs/lockd/
Dhost.c109 static struct nlm_host *nlm_alloc_host(struct nlm_lookup_host_info *ni, in nlm_alloc_host() argument
119 nsm = nsm_get_handle(ni->sap, ni->salen, in nlm_alloc_host()
120 ni->hostname, ni->hostname_len); in nlm_alloc_host()
135 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host()
136 host->h_addrlen = ni->salen; in nlm_alloc_host()
142 host->h_version = ni->version; in nlm_alloc_host()
143 host->h_proto = ni->protocol; in nlm_alloc_host()
145 host->h_server = ni->server; in nlm_alloc_host()
146 host->h_noresvport = ni->noresvport; in nlm_alloc_host()
163 host->net = ni->net; in nlm_alloc_host()
[all …]
/fs/f2fs/
Dnode.h48 struct node_info ni; /* in-memory node information */ member
51 #define nat_get_nid(nat) (nat->ni.nid)
52 #define nat_set_nid(nat, n) (nat->ni.nid = n)
53 #define nat_get_blkaddr(nat) (nat->ni.blk_addr)
54 #define nat_set_blkaddr(nat, b) (nat->ni.blk_addr = b)
55 #define nat_get_ino(nat) (nat->ni.ino)
56 #define nat_set_ino(nat, i) (nat->ni.ino = i)
57 #define nat_get_version(nat) (nat->ni.version)
58 #define nat_set_version(nat, v) (nat->ni.version = v)
66 static inline void node_info_from_raw_nat(struct node_info *ni, in node_info_from_raw_nat() argument
[all …]
Dnode.c191 static void set_node_addr(struct f2fs_sb_info *sbi, struct node_info *ni, in set_node_addr() argument
198 e = __lookup_nat_cache(nm_i, ni->nid); in set_node_addr()
200 e = grab_nat_entry(nm_i, ni->nid); in set_node_addr()
205 e->ni = *ni; in set_node_addr()
207 BUG_ON(ni->blk_addr == NEW_ADDR); in set_node_addr()
214 e->ni = *ni; in set_node_addr()
215 BUG_ON(ni->blk_addr != NULL_ADDR); in set_node_addr()
222 BUG_ON(nat_get_blkaddr(e) != ni->blk_addr); in set_node_addr()
265 void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni) in get_node_info() argument
278 ni->nid = nid; in get_node_info()
[all …]
Drecovery.c247 struct node_info ni; in do_recover_data() local
268 get_node_info(sbi, dn.nid, &ni); in do_recover_data()
269 BUG_ON(ni.ino != ino_of_node(page)); in do_recover_data()
288 set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); in do_recover_data()
303 fill_node_footer(dn.node_page, dn.nid, ni.ino, in do_recover_data()
307 recover_node_page(sbi, dn.node_page, &sum, &ni, blkaddr); in do_recover_data()
Dsegment.c895 struct node_info ni; in write_data_page() local
898 get_node_info(sbi, dn->nid, &ni); in write_data_page()
899 set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); in write_data_page()
/fs/xfs/
Dxfs_quota.h384 #define xfs_trans_reserve_quota(tp, mp, ud, gd, nb, ni, f) \ argument
385 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, nb, ni, \
Dxfs_inode.c392 int ni; in xfs_inode_buf_verify() local
397 ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock; in xfs_inode_buf_verify()
398 for (i = 0; i < ni; i++) { in xfs_inode_buf_verify()
/fs/ncpfs/
Dinode.c819 struct ncp_inode_info* ni; in ncp_statfs() local
834 ni = NCP_FINFO(i); in ncp_statfs()
835 if (!ni) { in ncp_statfs()
846 err = ncp_dirhandle_alloc(s, ni->volNumber, ni->DosDirNum, &dh); in ncp_statfs()
/fs/nilfs2/
Dbtree.c1771 union nilfs_bmap_ptr_req dreq, nreq, *di, *ni; in nilfs_btree_convert_and_insert() local
1777 ni = NULL; in nilfs_btree_convert_and_insert()
1781 ni = &nreq; in nilfs_btree_convert_and_insert()
1784 ni = NULL; in nilfs_btree_convert_and_insert()
1788 ret = nilfs_btree_prepare_convert_and_insert(btree, key, di, ni, &bh, in nilfs_btree_convert_and_insert()
1793 di, ni, bh); in nilfs_btree_convert_and_insert()