/fs/ntfs/ |
D | inode.c | 49 ntfs_inode *ni; in ntfs_test_inode() local 53 ni = NTFS_I(vi); in ntfs_test_inode() 55 if (likely(!NInoAttr(ni))) { in ntfs_test_inode() 61 if (ni->type != na->type) in ntfs_test_inode() 63 if (ni->name_len != na->name_len) in ntfs_test_inode() 65 if (na->name_len && memcmp(ni->name, na->name, in ntfs_test_inode() 94 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_locked_inode() local 98 ni->type = na->type; in ntfs_init_locked_inode() 100 NInoSetMstProtected(ni); in ntfs_init_locked_inode() 102 ni->name = na->name; in ntfs_init_locked_inode() [all …]
|
D | attrib.c | 70 int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, ntfs_attr_search_ctx *ctx) in ntfs_map_runlist_nolock() argument 85 if (!NInoAttr(ni)) in ntfs_map_runlist_nolock() 86 base_ni = ni; in ntfs_map_runlist_nolock() 88 base_ni = ni->ext.base_ntfs_ino; in ntfs_map_runlist_nolock() 107 read_lock_irqsave(&ni->size_lock, flags); in ntfs_map_runlist_nolock() 108 allocated_size_vcn = ni->allocated_size >> in ntfs_map_runlist_nolock() 109 ni->vol->cluster_size_bits; in ntfs_map_runlist_nolock() 110 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_map_runlist_nolock() 120 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock() 121 a->name_length == ni->name_len && in ntfs_map_runlist_nolock() [all …]
|
D | file.c | 95 static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) in ntfs_attr_extend_initialized() argument 101 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized() 112 read_lock_irqsave(&ni->size_lock, flags); in ntfs_attr_extend_initialized() 113 old_init_size = ni->initialized_size; in ntfs_attr_extend_initialized() 115 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized() 116 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_attr_extend_initialized() 120 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized() 123 if (!NInoAttr(ni)) in ntfs_attr_extend_initialized() 124 base_ni = ni; in ntfs_attr_extend_initialized() 126 base_ni = ni->ext.base_ntfs_ino; in ntfs_attr_extend_initialized() [all …]
|
D | aops.c | 51 ntfs_inode *ni; in ntfs_end_buffer_async_read() local 56 ni = NTFS_I(vi); in ntfs_end_buffer_async_read() 66 read_lock_irqsave(&ni->size_lock, flags); in ntfs_end_buffer_async_read() 67 init_size = ni->initialized_size; in ntfs_end_buffer_async_read() 69 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_end_buffer_async_read() 91 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read() 121 if (!NInoMstProtected(ni)) { in ntfs_end_buffer_async_read() 129 rec_size = ni->itype.index.block_size; in ntfs_end_buffer_async_read() 174 ntfs_inode *ni; in ntfs_read_block() local 185 ni = NTFS_I(vi); in ntfs_read_block() [all …]
|
D | mft.h | 18 extern MFT_RECORD *map_mft_record(ntfs_inode *ni); 19 extern void unmap_mft_record(ntfs_inode *ni); 24 static inline void unmap_extent_mft_record(ntfs_inode *ni) in unmap_extent_mft_record() argument 26 unmap_mft_record(ni); in unmap_extent_mft_record() 41 static inline void flush_dcache_mft_record_page(ntfs_inode *ni) in flush_dcache_mft_record_page() argument 43 flush_dcache_page(ni->page); in flush_dcache_mft_record_page() 46 extern void __mark_mft_record_dirty(ntfs_inode *ni); 59 static inline void mark_mft_record_dirty(ntfs_inode *ni) in mark_mft_record_dirty() argument 61 if (!NInoTestSetDirty(ni)) in mark_mft_record_dirty() 62 __mark_mft_record_dirty(ni); in mark_mft_record_dirty() [all …]
|
D | mft.c | 36 static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni) in map_mft_record_page() argument 39 ntfs_volume *vol = ni->vol; in map_mft_record_page() 45 BUG_ON(ni->page); in map_mft_record_page() 52 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page() 54 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page() 68 "driver.", ni->mft_no); in map_mft_record_page() 78 ni->page = page; in map_mft_record_page() 79 ni->page_ofs = ofs; in map_mft_record_page() 83 "Run chkdsk.", ni->mft_no); in map_mft_record_page() 89 ni->page = NULL; in map_mft_record_page() [all …]
|
D | inode.h | 169 static inline int NIno##flag(ntfs_inode *ni) \ 171 return test_bit(NI_##flag, &(ni)->state); \ 173 static inline void NInoSet##flag(ntfs_inode *ni) \ 175 set_bit(NI_##flag, &(ni)->state); \ 177 static inline void NInoClear##flag(ntfs_inode *ni) \ 179 clear_bit(NI_##flag, &(ni)->state); \ 186 static inline int NInoTestSet##flag(ntfs_inode *ni) \ 188 return test_and_set_bit(NI_##flag, &(ni)->state); \ 190 static inline int NInoTestClear##flag(ntfs_inode *ni) \ 192 return test_and_clear_bit(NI_##flag, &(ni)->state); \ [all …]
|
D | attrib.h | 49 extern int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, 51 extern int ntfs_map_runlist(ntfs_inode *ni, VCN vcn); 53 extern LCN ntfs_attr_vcn_to_lcn_nolock(ntfs_inode *ni, const VCN vcn, 56 extern runlist_element *ntfs_attr_find_vcn_nolock(ntfs_inode *ni, 75 extern ntfs_attr_search_ctx *ntfs_attr_get_search_ctx(ntfs_inode *ni, 92 extern int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size); 94 extern s64 ntfs_attr_extend_allocation(ntfs_inode *ni, s64 new_alloc_size, 97 extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt,
|
D | namei.c | 166 ntfs_inode *ni = NTFS_I(dent_inode); in ntfs_lookup() local 184 ni = NTFS_I(dent_inode); in ntfs_lookup() 185 m = map_mft_record(ni); in ntfs_lookup() 192 ctx = ntfs_attr_get_search_ctx(ni, m); in ntfs_lookup() 232 unmap_mft_record(ni); in ntfs_lookup() 255 unmap_mft_record(ni); in ntfs_lookup() 289 ntfs_inode *ni = NTFS_I(vi); in ntfs_get_parent() local 299 mrec = map_mft_record(ni); in ntfs_get_parent() 303 ctx = ntfs_attr_get_search_ctx(ni, mrec); in ntfs_get_parent() 305 unmap_mft_record(ni); in ntfs_get_parent() [all …]
|
D | compress.c | 467 ntfs_inode *ni = NTFS_I(mapping->host); in ntfs_read_compressed_block() local 468 ntfs_volume *vol = ni->vol; in ntfs_read_compressed_block() 476 u32 cb_size = ni->itype.compressed.block_size; in ntfs_read_compressed_block() 491 >> ni->itype.compressed.block_size_bits; in ntfs_read_compressed_block() 512 BUG_ON(ni->type != AT_DATA); in ntfs_read_compressed_block() 513 BUG_ON(ni->name_len); in ntfs_read_compressed_block() 542 read_lock_irqsave(&ni->size_lock, flags); in ntfs_read_compressed_block() 543 i_size = i_size_read(VFS_I(ni)); in ntfs_read_compressed_block() 544 initialized_size = ni->initialized_size; in ntfs_read_compressed_block() 545 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_read_compressed_block() [all …]
|
D | lcnalloc.h | 34 extern s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, 93 static inline s64 ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, in ntfs_cluster_free() argument 96 return __ntfs_cluster_free(ni, start_vcn, count, ctx, false); in ntfs_cluster_free()
|
D | lcnalloc.c | 835 s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, s64 count, in __ntfs_cluster_free() argument 844 BUG_ON(!ni); in __ntfs_cluster_free() 846 "0x%llx.%s", ni->mft_no, (unsigned long long)start_vcn, in __ntfs_cluster_free() 849 vol = ni->vol; in __ntfs_cluster_free() 866 rl = ntfs_attr_find_vcn_nolock(ni, start_vcn, ctx); in __ntfs_cluster_free() 920 rl = ntfs_attr_find_vcn_nolock(ni, vcn, ctx); in __ntfs_cluster_free() 988 delta = __ntfs_cluster_free(ni, start_vcn, total_freed, ctx, true); in __ntfs_cluster_free()
|
D | super.c | 363 ntfs_inode *ni = NTFS_I(vol->vol_ino); in ntfs_write_volume_flags() local 373 BUG_ON(!ni); in ntfs_write_volume_flags() 374 m = map_mft_record(ni); in ntfs_write_volume_flags() 379 ctx = ntfs_attr_get_search_ctx(ni, m); in ntfs_write_volume_flags() 394 unmap_mft_record(ni); in ntfs_write_volume_flags() 401 unmap_mft_record(ni); in ntfs_write_volume_flags() 3034 ntfs_inode *ni = (ntfs_inode *)foo; in ntfs_big_inode_init_once() local 3036 inode_init_once(VFS_I(ni)); in ntfs_big_inode_init_once()
|
/fs/f2fs/ |
D | node.h | 63 struct node_info ni; /* in-memory node information */ member 66 #define nat_get_nid(nat) ((nat)->ni.nid) 67 #define nat_set_nid(nat, n) ((nat)->ni.nid = (n)) 68 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr) 69 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b)) 70 #define nat_get_ino(nat) ((nat)->ni.ino) 71 #define nat_set_ino(nat, i) ((nat)->ni.ino = (i)) 72 #define nat_get_version(nat) ((nat)->ni.version) 73 #define nat_set_version(nat, v) ((nat)->ni.version = (v)) 92 ne->ni.flag |= mask; in set_nat_flag() [all …]
|
D | node.c | 174 node_info_from_raw_nat(&ne->ni, raw_ne); in __init_nat_entry() 219 nid_t set = NAT_BLOCK_OFFSET(ne->ni.nid); in __grab_nat_entry_set() 428 static void set_node_addr(struct f2fs_sb_info *sbi, struct node_info *ni, in set_node_addr() argument 433 struct nat_entry *new = __alloc_nat_entry(ni->nid, true); in set_node_addr() 436 e = __lookup_nat_cache(nm_i, ni->nid); in set_node_addr() 439 copy_node_info(&e->ni, ni); in set_node_addr() 440 f2fs_bug_on(sbi, ni->blk_addr == NEW_ADDR); in set_node_addr() 447 copy_node_info(&e->ni, ni); in set_node_addr() 448 f2fs_bug_on(sbi, ni->blk_addr != NULL_ADDR); in set_node_addr() 455 f2fs_bug_on(sbi, nat_get_blkaddr(e) != ni->blk_addr); in set_node_addr() [all …]
|
D | inline.c | 136 struct node_info ni; in f2fs_convert_inline_page() local 146 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); in f2fs_convert_inline_page() 153 fio.version = ni.version; in f2fs_convert_inline_page() 764 struct node_info ni; in f2fs_inline_data_fiemap() local 790 err = f2fs_get_node_info(F2FS_I_SB(inode), inode->i_ino, &ni); in f2fs_inline_data_fiemap() 794 byteaddr = (__u64)ni.blk_addr << inode->i_sb->s_blocksize_bits; in f2fs_inline_data_fiemap()
|
D | recovery.c | 560 struct node_info ni; in do_recover_data() local 601 err = f2fs_get_node_info(sbi, dn.nid, &ni); in do_recover_data() 605 f2fs_bug_on(sbi, ni.ino != ino_of_node(page)); in do_recover_data() 704 ni.version, false, false); in do_recover_data() 710 fill_node_footer(dn.node_page, dn.nid, ni.ino, in do_recover_data()
|
D | gc.c | 535 struct node_info ni; in gc_node_segment() local 567 if (f2fs_get_node_info(sbi, nid, &ni)) { in gc_node_segment() 572 if (ni.blk_addr != start_addr + off) { in gc_node_segment() 793 struct node_info ni; in move_data_block() local 841 err = f2fs_get_node_info(fio.sbi, dn.nid, &ni); in move_data_block() 845 set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); in move_data_block()
|
D | data.c | 1395 struct node_info ni; in __allocate_data_block() local 1403 err = f2fs_get_node_info(sbi, dn->nid, &ni); in __allocate_data_block() 1415 set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); in __allocate_data_block() 1843 struct node_info ni; in f2fs_xattr_fiemap() local 1857 err = f2fs_get_node_info(sbi, inode->i_ino, &ni); in f2fs_xattr_fiemap() 1863 phys = (__u64)blk_to_logical(inode, ni.blk_addr); in f2fs_xattr_fiemap() 1888 err = f2fs_get_node_info(sbi, xnid, &ni); in f2fs_xattr_fiemap() 1894 phys = (__u64)blk_to_logical(inode, ni.blk_addr); in f2fs_xattr_fiemap() 2625 struct node_info ni; in f2fs_do_write_data_page() local 2703 err = f2fs_get_node_info(fio->sbi, dn.nid, &ni); in f2fs_do_write_data_page() [all …]
|
D | inode.c | 828 struct node_info ni; in f2fs_handle_failed_inode() local 852 err = f2fs_get_node_info(sbi, inode->i_ino, &ni); in f2fs_handle_failed_inode() 860 if (ni.blk_addr != NULL_ADDR) { in f2fs_handle_failed_inode()
|
D | compress.c | 1073 struct node_info ni; in f2fs_write_compressed_pages() local 1097 err = f2fs_get_node_info(fio.sbi, dn.nid, &ni); in f2fs_write_compressed_pages() 1101 fio.version = ni.version; in f2fs_write_compressed_pages()
|
/fs/lockd/ |
D | host.c | 111 static struct nlm_host *nlm_alloc_host(struct nlm_lookup_host_info *ni, in nlm_alloc_host() argument 121 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host() 122 ni->hostname, ni->hostname_len); in nlm_alloc_host() 137 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host() 138 host->h_addrlen = ni->salen; in nlm_alloc_host() 144 host->h_version = ni->version; in nlm_alloc_host() 145 host->h_proto = ni->protocol; in nlm_alloc_host() 147 host->h_server = ni->server; in nlm_alloc_host() 148 host->h_noresvport = ni->noresvport; in nlm_alloc_host() 165 host->net = ni->net; in nlm_alloc_host() [all …]
|
/fs/xfs/ |
D | xfs_quota.h | 155 #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \ argument 156 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \
|
/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 70 int ni; in xfs_inode_buf_verify() local 76 ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock; in xfs_inode_buf_verify() 77 for (i = 0; i < ni; i++) { in xfs_inode_buf_verify()
|
/fs/nilfs2/ |
D | btree.c | 1876 union nilfs_bmap_ptr_req dreq, nreq, *di, *ni; in nilfs_btree_convert_and_insert() local 1882 ni = NULL; in nilfs_btree_convert_and_insert() 1886 ni = &nreq; in nilfs_btree_convert_and_insert() 1889 ni = NULL; in nilfs_btree_convert_and_insert() 1893 ret = nilfs_btree_prepare_convert_and_insert(btree, key, di, ni, &bh, in nilfs_btree_convert_and_insert() 1898 di, ni, bh); in nilfs_btree_convert_and_insert()
|