/fs/overlayfs/ |
D | namei.c | 463 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index) in ovl_index_upper() argument 468 if (!d_is_dir(index)) in ovl_index_upper() 469 return dget(index); in ovl_index_upper() 471 fh = ovl_get_fh(index, OVL_XATTR_UPPER); in ovl_index_upper() 483 index, upper); in ovl_index_upper() 492 static bool ovl_is_temp_index(struct dentry *index) in ovl_is_temp_index() argument 494 return index->d_name.name[0] == '#'; in ovl_is_temp_index() 502 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index) in ovl_verify_index() argument 511 if (!d_inode(index)) in ovl_verify_index() 516 if (ovl_is_temp_index(index)) in ovl_verify_index() [all …]
|
D | export.c | 292 struct dentry *index) in ovl_obtain_alias() argument 295 struct dentry *upper = upper_alias ?: index; in ovl_obtain_alias() 301 .index = index, in ovl_obtain_alias() 437 struct dentry *index = NULL; in ovl_lookup_real_inode() local 458 index = ovl_lookup_index(ofs, NULL, real, false); in ovl_lookup_real_inode() 459 if (IS_ERR(index)) in ovl_lookup_real_inode() 460 return index; in ovl_lookup_real_inode() 464 if (index) { in ovl_lookup_real_inode() 465 struct dentry *upper = ovl_index_upper(ofs, index); in ovl_lookup_real_inode() 467 dput(index); in ovl_lookup_real_inode() [all …]
|
/fs/jfs/ |
D | jfs_dtree.c | 104 s16 index; member 172 static void dtInsertEntry(dtpage_t * p, int index, struct component_name * key, 236 static struct dir_table_slot *find_index(struct inode *ip, u32 index, in find_index() argument 246 if (index < 2) { in find_index() 248 jfs_warn("find_entry called with index = %d", index); in find_index() 254 if (index >= jfs_ip->next_index) { in find_index() 264 slot = &jfs_ip->i_dirtable[index - 2]; in find_index() 266 offset = (index - 2) * sizeof(struct dir_table_slot); in find_index() 292 u32 index) in lock_index() argument 301 if (llck->index >= llck->maxcnt) in lock_index() [all …]
|
D | jfs_xtree.c | 80 s16 index; member 142 int index; in xtLookup() local 175 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup() 190 xad = &p->xad[index]; in xtLookup() 236 int base, index, lim, btindex; in xtSearch() local 279 (index = jfs_ip->btindex) < in xtSearch() 281 xad = &p->xad[index]; in xtSearch() 294 index++; in xtSearch() 295 if (index < in xtSearch() 348 btsp->index = index; in xtSearch() [all …]
|
/fs/nls/ |
D | nls_euc-jp.c | 287 int index; in sjisibm2euc() local 289 index = ((sjis_hi - 0xFA) * (0xFD - 0x40)) + (sjis_lo - 0x40); in sjisibm2euc() 290 if (IS_EUC_IBM2JISX0208(sjisibm2euc_map[index][0], in sjisibm2euc() 291 sjisibm2euc_map[index][1])) { in sjisibm2euc() 292 euc[0] = sjisibm2euc_map[index][0]; in sjisibm2euc() 293 euc[1] = sjisibm2euc_map[index][1]; in sjisibm2euc() 297 euc[1] = sjisibm2euc_map[index][0]; in sjisibm2euc() 298 euc[2] = sjisibm2euc_map[index][1]; in sjisibm2euc() 307 int index, min_index, max_index; in euc2sjisibm_jisx0212() local 315 index = (min_index + max_index) / 2; in euc2sjisibm_jisx0212() [all …]
|
/fs/erofs/ |
D | zpvec.h | 34 unsigned int nr, index; member 53 unsigned int index; in z_erofs_pagevec_ctor_next_page() local 59 for (index = 0; index < nr; ++index) { in z_erofs_pagevec_ctor_next_page() 60 const erofs_vtptr_t t = ctor->pages[index]; in z_erofs_pagevec_ctor_next_page() 84 ctor->index = 0; in z_erofs_pagevec_ctor_pagedown() 105 ctor->index = i; in z_erofs_pagevec_ctor_init() 115 if (ctor->index + 1 == ctor->nr) in z_erofs_pagevec_enqueue() 118 if (ctor->index >= ctor->nr) in z_erofs_pagevec_enqueue() 130 ctor->pages[ctor->index++] = tagptr_fold(erofs_vtptr_t, page, type); in z_erofs_pagevec_enqueue() 140 if (ctor->index >= ctor->nr) { in z_erofs_pagevec_dequeue() [all …]
|
/fs/ntfs/ |
D | dir.c | 114 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_lookup_inode_by_name() 116 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_lookup_inode_by_name() 117 le32_to_cpu(ir->index.entries_offset)); in ntfs_lookup_inode_by_name() 308 dir_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_lookup_inode_by_name() 320 dir_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_lookup_inode_by_name() 343 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_lookup_inode_by_name() 344 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name() 350 le32_to_cpu(ia->index.allocated_size) + 0x18, in ntfs_lookup_inode_by_name() 351 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name() 354 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name() [all …]
|
D | index.c | 131 idx_ni->itype.index.collation_rule)) { in ntfs_index_lookup() 134 idx_ni->itype.index.collation_rule)); in ntfs_index_lookup() 163 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_index_lookup() 165 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_index_lookup() 166 le32_to_cpu(ir->index.entries_offset)); in ntfs_index_lookup() 213 rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, in ntfs_index_lookup() 265 idx_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_index_lookup() 277 idx_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_index_lookup() 300 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_index_lookup() 301 idx_ni->itype.index.block_size) { in ntfs_index_lookup() [all …]
|
/fs/squashfs/ |
D | namei.c | 71 struct squashfs_dir_index *index; in get_dir_index_using_name() local 76 index = kmalloc(sizeof(*index) + SQUASHFS_NAME_LEN * 2 + 2, GFP_KERNEL); in get_dir_index_using_name() 77 if (index == NULL) { in get_dir_index_using_name() 82 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name() 87 err = squashfs_read_metadata(sb, index, &index_start, in get_dir_index_using_name() 88 &index_offset, sizeof(*index)); in get_dir_index_using_name() 93 size = le32_to_cpu(index->size) + 1; in get_dir_index_using_name() 97 err = squashfs_read_metadata(sb, index->name, &index_start, in get_dir_index_using_name() 102 index->name[size] = '\0'; in get_dir_index_using_name() 104 if (strcmp(index->name, str) > 0) in get_dir_index_using_name() [all …]
|
D | file.c | 48 int index) in locate_meta_index() argument 56 TRACE("locate_meta_index: index %d, offset %d\n", index, offset); in locate_meta_index() 64 msblk->meta_index[i].offset <= index && in locate_meta_index() 227 static int fill_meta_index(struct inode *inode, int index, in fill_meta_index() argument 243 index /= SQUASHFS_META_INDEXES * skip; in fill_meta_index() 245 while (offset < index) { in fill_meta_index() 246 meta = locate_meta_index(inode, offset + 1, index); in fill_meta_index() 253 offset = index < meta->offset + meta->entries ? index : in fill_meta_index() 273 for (i = meta->offset + meta->entries; i <= index && in fill_meta_index() 326 static int read_blocklist(struct inode *inode, int index, u64 *block) in read_blocklist() argument [all …]
|
D | block.c | 78 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 83 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data() 84 u64 cur_index = index >> msblk->devblksize_log2; in squashfs_read_data() 100 *next_index = index + length; in squashfs_read_data() 103 index, compressed ? "" : "un", length, output->length); in squashfs_read_data() 106 (index + length) > msblk->bytes_used) in squashfs_read_data() 120 if ((index + 2) > msblk->bytes_used) in squashfs_read_data() 132 *next_index = index + length + 2; in squashfs_read_data() 134 TRACE("Block @ 0x%llx, %scompressed size %d\n", index, in squashfs_read_data() 138 (index + length) > msblk->bytes_used) in squashfs_read_data() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_bmap_btree.h | 22 #define XFS_BMBT_REC_ADDR(mp, block, index) \ argument 26 ((index) - 1) * sizeof(xfs_bmbt_rec_t))) 28 #define XFS_BMBT_KEY_ADDR(mp, block, index) \ argument 32 ((index) - 1) * sizeof(xfs_bmbt_key_t))) 34 #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \ argument 39 ((index) - 1) * sizeof(xfs_bmbt_ptr_t))) 41 #define XFS_BMDR_REC_ADDR(block, index) \ argument 45 ((index) - 1) * sizeof(xfs_bmdr_rec_t))) 47 #define XFS_BMDR_KEY_ADDR(block, index) \ argument 51 ((index) - 1) * sizeof(xfs_bmdr_key_t))) [all …]
|
D | xfs_dir2_leaf.c | 441 int index, in xfs_dir3_leaf_find_stale() argument 448 for (*lowstale = index - 1; *lowstale >= 0; --*lowstale) { in xfs_dir3_leaf_find_stale() 459 for (*highstale = index; *highstale < leafhdr->count; ++*highstale) { in xfs_dir3_leaf_find_stale() 463 if (*lowstale >= 0 && index - *lowstale <= *highstale - index) in xfs_dir3_leaf_find_stale() 472 int index, /* leaf table position */ in xfs_dir3_leaf_find_entry() argument 487 lep = &ents[index]; in xfs_dir3_leaf_find_entry() 488 if (index < leafhdr->count) in xfs_dir3_leaf_find_entry() 490 (leafhdr->count - index) * sizeof(*lep)); in xfs_dir3_leaf_find_entry() 495 *lfloglow = index; in xfs_dir3_leaf_find_entry() 510 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry() [all …]
|
D | xfs_rmap_btree.h | 21 #define XFS_RMAP_REC_ADDR(block, index) \ argument 24 (((index) - 1) * sizeof(struct xfs_rmap_rec)))) 26 #define XFS_RMAP_KEY_ADDR(block, index) \ argument 29 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key))) 31 #define XFS_RMAP_HIGH_KEY_ADDR(block, index) \ argument 35 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key))) 37 #define XFS_RMAP_PTR_ADDR(block, index, maxrecs) \ argument 41 ((index) - 1) * sizeof(xfs_rmap_ptr_t)))
|
/fs/fscache/ |
D | histogram.c | 25 unsigned long index; in fscache_histogram_show() local 36 index = (unsigned long) v - 3; in fscache_histogram_show() 37 n[0] = atomic_read(&fscache_obj_instantiate_histogram[index]); in fscache_histogram_show() 38 n[1] = atomic_read(&fscache_ops_histogram[index]); in fscache_histogram_show() 39 n[2] = atomic_read(&fscache_objs_histogram[index]); in fscache_histogram_show() 40 n[3] = atomic_read(&fscache_retrieval_delay_histogram[index]); in fscache_histogram_show() 41 n[4] = atomic_read(&fscache_retrieval_histogram[index]); in fscache_histogram_show() 45 t = (index * 1000) / HZ; in fscache_histogram_show() 48 index, t, n[0], n[1], n[2], n[3], n[4]); in fscache_histogram_show()
|
/fs/afs/ |
D | vl_rotate.c | 76 vc->index = -1; in afs_start_vl_iteration() 93 vc->untried, vc->index, in afs_select_vlserver() 94 vc->ac.tried, vc->ac.index, in afs_select_vlserver() 182 vc->index = vc->server_list->preferred; in afs_select_vlserver() 183 if (test_bit(vc->index, &vc->untried)) in afs_select_vlserver() 186 vc->index = -1; in afs_select_vlserver() 194 vc->index = i; in afs_select_vlserver() 199 if (vc->index == -1) in afs_select_vlserver() 203 _debug("use %d", vc->index); in afs_select_vlserver() 204 __clear_bit(vc->index, &vc->untried); in afs_select_vlserver() [all …]
|
D | write.c | 87 pgoff_t index = pos >> PAGE_SHIFT; in afs_write_begin() local 91 vnode->fid.vid, vnode->fid.vnode, index, from, to); in afs_write_begin() 98 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin() 131 page->index, priv); in afs_write_begin() 153 page->index, priv); in afs_write_begin() 191 vnode->fid.vid, vnode->fid.vnode, page->index); in afs_write_end() 258 if (page->index >= first) in afs_kill_pages() 259 first = page->index + 1; in afs_kill_pages() 301 if (page->index >= first) in afs_redirty_pages() 302 first = page->index + 1; in afs_redirty_pages() [all …]
|
D | vl_probe.c | 34 unsigned int index = call->addr_ix; in afs_vlserver_probe_result() local 40 _enter("%s,%u,%u,%d,%d", server->name, server_index, index, ret, call->abort_code); in afs_vlserver_probe_result() 69 clear_bit(index, &alist->responded); in afs_vlserver_probe_result() 70 set_bit(index, &alist->failed); in afs_vlserver_probe_result() 81 set_bit(index, &alist->responded); in afs_vlserver_probe_result() 82 clear_bit(index, &alist->failed); in afs_vlserver_probe_result() 87 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result() 92 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result() 105 alist->preferred = index; in afs_vlserver_probe_result() 116 server_index, index, &alist->addrs[index].transport, in afs_vlserver_probe_result() [all …]
|
D | fs_probe.c | 34 unsigned int index = call->addr_ix; in afs_fileserver_probe_result() local 40 _enter("%pU,%u", &server->uuid, index); in afs_fileserver_probe_result() 69 clear_bit(index, &alist->responded); in afs_fileserver_probe_result() 70 set_bit(index, &alist->failed); in afs_fileserver_probe_result() 81 set_bit(index, &alist->responded); in afs_fileserver_probe_result() 82 clear_bit(index, &alist->failed); in afs_fileserver_probe_result() 87 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result() 92 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result() 105 alist->preferred = index; in afs_fileserver_probe_result() 116 server_index, index, &alist->addrs[index].transport, in afs_fileserver_probe_result() [all …]
|
/fs/ecryptfs/ |
D | mmap.c | 33 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page() argument 35 struct page *page = read_mapping_page(inode->i_mapping, index, NULL); in ecryptfs_get_locked_page() 58 "page (upper index [0x%.16lx])\n", page->index); in ecryptfs_writepage() 117 loff_t view_extent_num = ((((loff_t)page->index) in ecryptfs_copy_up_encrypted_with_header() 187 rc = ecryptfs_read_lower_page_segment(page, page->index, 0, in ecryptfs_readpage() 205 page, page->index, 0, PAGE_SIZE, in ecryptfs_readpage() 227 page->index); in ecryptfs_readpage() 240 if ((i_size_read(inode) / PAGE_SIZE) != page->index) in fill_zeros_to_end_of_page() 269 pgoff_t index = pos >> PAGE_SHIFT; in ecryptfs_write_begin() local 274 page = grab_cache_page_write_begin(mapping, index, flags); in ecryptfs_write_begin() [all …]
|
/fs/nilfs2/ |
D | page.c | 29 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, in __nilfs_get_page_block() argument 39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_page_block() 53 pgoff_t index = blkoff >> (PAGE_SHIFT - blkbits); in nilfs_grab_buffer() local 57 page = grab_cache_page(mapping, index); in nilfs_grab_buffer() 61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer() 170 (unsigned long long)page->index, page->flags, m, ino); in nilfs_page_bug() 246 pgoff_t index = 0; in nilfs_copy_dirty_pages() local 251 if (!pagevec_lookup_tag(&pvec, smap, &index, PAGECACHE_TAG_DIRTY)) in nilfs_copy_dirty_pages() 261 dpage = grab_cache_page(dmap, page->index); in nilfs_copy_dirty_pages() 300 pgoff_t index = 0; in nilfs_copy_back_pages() local [all …]
|
D | btree.c | 136 nilfs_btree_node_get_key(const struct nilfs_btree_node *node, int index) in nilfs_btree_node_get_key() argument 138 return le64_to_cpu(*(nilfs_btree_node_dkeys(node) + index)); in nilfs_btree_node_get_key() 142 nilfs_btree_node_set_key(struct nilfs_btree_node *node, int index, __u64 key) in nilfs_btree_node_set_key() argument 144 *(nilfs_btree_node_dkeys(node) + index) = cpu_to_le64(key); in nilfs_btree_node_set_key() 148 nilfs_btree_node_get_ptr(const struct nilfs_btree_node *node, int index, in nilfs_btree_node_get_ptr() argument 151 return le64_to_cpu(*(nilfs_btree_node_dptrs(node, ncmax) + index)); in nilfs_btree_node_get_ptr() 155 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument 158 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr() 238 static void nilfs_btree_node_insert(struct nilfs_btree_node *node, int index, in nilfs_btree_node_insert() argument 248 if (index < nchildren) { in nilfs_btree_node_insert() [all …]
|
/fs/ |
D | filesystems.c | 135 int err, index; in fs_index() local 144 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index() 146 err = index; in fs_index() 155 static int fs_name(unsigned int index, char __user * buf) in fs_name() argument 161 for (tmp = file_systems; tmp; tmp = tmp->next, index--) in fs_name() 162 if (index <= 0 && try_module_get(tmp->owner)) in fs_name() 178 int index; in fs_maxindex() local 181 for (tmp = file_systems, index = 0 ; tmp ; tmp = tmp->next, index++) in fs_maxindex() 184 return index; in fs_maxindex()
|
/fs/ocfs2/ |
D | uptodate.c | 232 int index = -1; in ocfs2_buffer_cached() local 243 index = ocfs2_search_cache_array(ci, bh->b_blocknr); in ocfs2_buffer_cached() 249 trace_ocfs2_buffer_cached_end(index, item); in ocfs2_buffer_cached() 251 return (index != -1) || (item != NULL); in ocfs2_buffer_cached() 522 int index) in ocfs2_remove_metadata_array() argument 527 BUG_ON(index < 0 || index >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_remove_metadata_array() 528 BUG_ON(index >= ci->ci_num_cached); in ocfs2_remove_metadata_array() 533 index, ci->ci_num_cached); in ocfs2_remove_metadata_array() 539 if (ci->ci_num_cached && index < ci->ci_num_cached) { in ocfs2_remove_metadata_array() 540 bytes = sizeof(sector_t) * (ci->ci_num_cached - index); in ocfs2_remove_metadata_array() [all …]
|
/fs/cachefiles/ |
D | proc.c | 22 unsigned long index; in cachefiles_histogram_show() local 33 index = (unsigned long) v - 3; in cachefiles_histogram_show() 34 x = atomic_read(&cachefiles_lookup_histogram[index]); in cachefiles_histogram_show() 35 y = atomic_read(&cachefiles_mkdir_histogram[index]); in cachefiles_histogram_show() 36 z = atomic_read(&cachefiles_create_histogram[index]); in cachefiles_histogram_show() 40 t = (index * 1000) / HZ; in cachefiles_histogram_show() 42 seq_printf(m, "%4lu 0.%03u %9u %9u %9u\n", index, t, x, y, z); in cachefiles_histogram_show()
|