/fs/jfs/ |
D | jfs_dtree.c | 117 s16 index; member 185 static void dtInsertEntry(dtpage_t * p, int index, struct component_name * key, 249 static struct dir_table_slot *find_index(struct inode *ip, u32 index, in find_index() argument 259 if (index < 2) { in find_index() 261 jfs_warn("find_entry called with index = %d", index); in find_index() 267 if (index >= jfs_ip->next_index) { in find_index() 277 slot = &jfs_ip->i_dirtable[index - 2]; in find_index() 279 offset = (index - 2) * sizeof(struct dir_table_slot); in find_index() 305 u32 index) in lock_index() argument 314 if (llck->index >= llck->maxcnt) in lock_index() [all …]
|
D | jfs_xtree.c | 93 s16 index; member 155 int index; in xtLookup() local 188 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup() 203 xad = &p->xad[index]; in xtLookup() 249 int base, index, lim, btindex; in xtSearch() local 292 (index = jfs_ip->btindex) < in xtSearch() 294 xad = &p->xad[index]; in xtSearch() 307 index++; in xtSearch() 308 if (index < in xtSearch() 361 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/overlayfs/ |
D | namei.c | 399 int ovl_verify_index(struct dentry *index, struct path *lowerstack, in ovl_verify_index() argument 409 if (!d_inode(index)) in ovl_verify_index() 424 if (d_is_dir(index) || ovl_is_whiteout(index)) in ovl_verify_index() 427 if (index->d_name.len < sizeof(struct ovl_fh)*2) in ovl_verify_index() 431 len = index->d_name.len / 2; in ovl_verify_index() 437 if (hex2bin((u8 *)fh, index->d_name.name, len) || len != fh->len) in ovl_verify_index() 440 err = ovl_verify_origin_fh(index, fh); in ovl_verify_index() 444 err = ovl_check_origin(index, lowerstack, numlower, &stack, &ctr); in ovl_verify_index() 451 if (d_inode(index)->i_nlink == 1 && in ovl_verify_index() 452 ovl_get_nlink(origin.dentry, index, 0) == 0) in ovl_verify_index() [all …]
|
/fs/ntfs/ |
D | dir.c | 128 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_lookup_inode_by_name() 130 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_lookup_inode_by_name() 131 le32_to_cpu(ir->index.entries_offset)); in ntfs_lookup_inode_by_name() 322 dir_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_lookup_inode_by_name() 334 dir_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_lookup_inode_by_name() 357 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_lookup_inode_by_name() 358 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name() 364 le32_to_cpu(ia->index.allocated_size) + 0x18, in ntfs_lookup_inode_by_name() 365 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name() 368 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name() [all …]
|
D | index.c | 145 idx_ni->itype.index.collation_rule)) { in ntfs_index_lookup() 148 idx_ni->itype.index.collation_rule)); in ntfs_index_lookup() 177 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_index_lookup() 179 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_index_lookup() 180 le32_to_cpu(ir->index.entries_offset)); in ntfs_index_lookup() 227 rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, in ntfs_index_lookup() 279 idx_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_index_lookup() 291 idx_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_index_lookup() 314 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_index_lookup() 315 idx_ni->itype.index.block_size) { in ntfs_index_lookup() [all …]
|
/fs/squashfs/ |
D | namei.c | 84 struct squashfs_dir_index *index; in get_dir_index_using_name() local 89 index = kmalloc(sizeof(*index) + SQUASHFS_NAME_LEN * 2 + 2, GFP_KERNEL); in get_dir_index_using_name() 90 if (index == NULL) { in get_dir_index_using_name() 95 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name() 100 err = squashfs_read_metadata(sb, index, &index_start, in get_dir_index_using_name() 101 &index_offset, sizeof(*index)); in get_dir_index_using_name() 106 size = le32_to_cpu(index->size) + 1; in get_dir_index_using_name() 110 err = squashfs_read_metadata(sb, index->name, &index_start, in get_dir_index_using_name() 115 index->name[size] = '\0'; in get_dir_index_using_name() 117 if (strcmp(index->name, str) > 0) in get_dir_index_using_name() [all …]
|
D | file.c | 61 int index) in locate_meta_index() argument 69 TRACE("locate_meta_index: index %d, offset %d\n", index, offset); in locate_meta_index() 77 msblk->meta_index[i].offset <= index && in locate_meta_index() 240 static int fill_meta_index(struct inode *inode, int index, in fill_meta_index() argument 256 index /= SQUASHFS_META_INDEXES * skip; in fill_meta_index() 258 while (offset < index) { in fill_meta_index() 259 meta = locate_meta_index(inode, offset + 1, index); in fill_meta_index() 266 offset = index < meta->offset + meta->entries ? index : in fill_meta_index() 286 for (i = meta->offset + meta->entries; i <= index && in fill_meta_index() 339 static int read_blocklist(struct inode *inode, int index, u64 *block) in read_blocklist() argument [all …]
|
D | block.c | 91 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 96 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data() 97 u64 cur_index = index >> msblk->devblksize_log2; in squashfs_read_data() 113 *next_index = index + length; in squashfs_read_data() 116 index, compressed ? "" : "un", length, output->length); in squashfs_read_data() 119 (index + length) > msblk->bytes_used) in squashfs_read_data() 133 if ((index + 2) > msblk->bytes_used) in squashfs_read_data() 145 *next_index = index + length + 2; in squashfs_read_data() 147 TRACE("Block @ 0x%llx, %scompressed size %d\n", index, in squashfs_read_data() 151 (index + length) > msblk->bytes_used) in squashfs_read_data() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_bmap_btree.h | 34 #define XFS_BMBT_REC_ADDR(mp, block, index) \ argument 38 ((index) - 1) * sizeof(xfs_bmbt_rec_t))) 40 #define XFS_BMBT_KEY_ADDR(mp, block, index) \ argument 44 ((index) - 1) * sizeof(xfs_bmbt_key_t))) 46 #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \ argument 51 ((index) - 1) * sizeof(xfs_bmbt_ptr_t))) 53 #define XFS_BMDR_REC_ADDR(block, index) \ argument 57 ((index) - 1) * sizeof(xfs_bmdr_rec_t))) 59 #define XFS_BMDR_KEY_ADDR(block, index) \ argument 63 ((index) - 1) * sizeof(xfs_bmdr_key_t))) [all …]
|
D | xfs_rmap_btree.h | 33 #define XFS_RMAP_REC_ADDR(block, index) \ argument 36 (((index) - 1) * sizeof(struct xfs_rmap_rec)))) 38 #define XFS_RMAP_KEY_ADDR(block, index) \ argument 41 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key))) 43 #define XFS_RMAP_HIGH_KEY_ADDR(block, index) \ argument 47 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key))) 49 #define XFS_RMAP_PTR_ADDR(block, index, maxrecs) \ argument 53 ((index) - 1) * sizeof(xfs_rmap_ptr_t)))
|
D | xfs_dir2_leaf.c | 486 int index, in xfs_dir3_leaf_find_stale() argument 493 for (*lowstale = index - 1; *lowstale >= 0; --*lowstale) { in xfs_dir3_leaf_find_stale() 504 for (*highstale = index; *highstale < leafhdr->count; ++*highstale) { in xfs_dir3_leaf_find_stale() 508 if (*lowstale >= 0 && index - *lowstale <= *highstale - index) in xfs_dir3_leaf_find_stale() 517 int index, /* leaf table position */ in xfs_dir3_leaf_find_entry() argument 532 lep = &ents[index]; in xfs_dir3_leaf_find_entry() 533 if (index < leafhdr->count) in xfs_dir3_leaf_find_entry() 535 (leafhdr->count - index) * sizeof(*lep)); in xfs_dir3_leaf_find_entry() 540 *lfloglow = index; in xfs_dir3_leaf_find_entry() 555 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry() [all …]
|
D | xfs_alloc_btree.h | 41 #define XFS_ALLOC_REC_ADDR(mp, block, index) \ argument 45 (((index) - 1) * sizeof(xfs_alloc_rec_t)))) 47 #define XFS_ALLOC_KEY_ADDR(mp, block, index) \ argument 51 ((index) - 1) * sizeof(xfs_alloc_key_t))) 53 #define XFS_ALLOC_PTR_ADDR(mp, block, index, maxrecs) \ argument 58 ((index) - 1) * sizeof(xfs_alloc_ptr_t)))
|
D | xfs_ialloc_btree.h | 41 #define XFS_INOBT_REC_ADDR(mp, block, index) \ argument 45 (((index) - 1) * sizeof(xfs_inobt_rec_t)))) 47 #define XFS_INOBT_KEY_ADDR(mp, block, index) \ argument 51 ((index) - 1) * sizeof(xfs_inobt_key_t))) 53 #define XFS_INOBT_PTR_ADDR(mp, block, index, maxrecs) \ argument 58 ((index) - 1) * sizeof(xfs_inobt_ptr_t)))
|
D | xfs_refcount_btree.h | 41 #define XFS_REFCOUNT_REC_ADDR(block, index) \ argument 45 (((index) - 1) * sizeof(struct xfs_refcount_rec)))) 47 #define XFS_REFCOUNT_KEY_ADDR(block, index) \ argument 51 ((index) - 1) * sizeof(struct xfs_refcount_key))) 53 #define XFS_REFCOUNT_PTR_ADDR(block, index, maxrecs) \ argument 58 ((index) - 1) * sizeof(xfs_refcount_ptr_t)))
|
/fs/ |
D | dax.c | 128 pgoff_t index, void *entry, struct exceptional_entry_key *key) in dax_entry_waitqueue() argument 138 index &= ~PG_PMD_COLOUR; in dax_entry_waitqueue() 141 key->entry_start = index; in dax_entry_waitqueue() 143 hash = hash_long((unsigned long)mapping ^ index, DAX_WAIT_TABLE_BITS); in dax_entry_waitqueue() 168 pgoff_t index, void *entry, bool wake_all) in dax_wake_mapping_entry_waiter() argument 173 wq = dax_entry_waitqueue(mapping, index, entry, &key); in dax_wake_mapping_entry_waiter() 234 pgoff_t index, void ***slotp) in get_unlocked_mapping_entry() argument 244 entry = __radix_tree_lookup(&mapping->page_tree, index, NULL, in get_unlocked_mapping_entry() 254 wq = dax_entry_waitqueue(mapping, index, entry, &ewait.key); in get_unlocked_mapping_entry() 265 pgoff_t index) in dax_unlock_mapping_entry() argument [all …]
|
D | filesystems.c | 131 int err, index; in fs_index() local 140 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index() 142 err = index; in fs_index() 151 static int fs_name(unsigned int index, char __user * buf) in fs_name() argument 157 for (tmp = file_systems; tmp; tmp = tmp->next, index--) in fs_name() 158 if (index <= 0 && try_module_get(tmp->owner)) in fs_name() 174 int index; in fs_maxindex() local 177 for (tmp = file_systems, index = 0 ; tmp ; tmp = tmp->next, index++) in fs_maxindex() 180 return index; in fs_maxindex()
|
/fs/fscache/ |
D | histogram.c | 29 unsigned long index; in fscache_histogram_show() local 40 index = (unsigned long) v - 3; in fscache_histogram_show() 41 n[0] = atomic_read(&fscache_obj_instantiate_histogram[index]); in fscache_histogram_show() 42 n[1] = atomic_read(&fscache_ops_histogram[index]); in fscache_histogram_show() 43 n[2] = atomic_read(&fscache_objs_histogram[index]); in fscache_histogram_show() 44 n[3] = atomic_read(&fscache_retrieval_delay_histogram[index]); in fscache_histogram_show() 45 n[4] = atomic_read(&fscache_retrieval_histogram[index]); in fscache_histogram_show() 49 t = (index * 1000) / HZ; in fscache_histogram_show() 52 index, t, n[0], n[1], n[2], n[3], n[4]); in fscache_histogram_show()
|
/fs/ecryptfs/ |
D | mmap.c | 47 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page() argument 49 struct page *page = read_mapping_page(inode->i_mapping, index, NULL); in ecryptfs_get_locked_page() 72 "page (upper index [0x%.16lx])\n", page->index); in ecryptfs_writepage() 131 loff_t view_extent_num = ((((loff_t)page->index) in ecryptfs_copy_up_encrypted_with_header() 201 rc = ecryptfs_read_lower_page_segment(page, page->index, 0, in ecryptfs_readpage() 219 page, page->index, 0, PAGE_SIZE, in ecryptfs_readpage() 241 page->index); in ecryptfs_readpage() 254 if ((i_size_read(inode) / PAGE_SIZE) != page->index) in fill_zeros_to_end_of_page() 283 pgoff_t index = pos >> PAGE_SHIFT; in ecryptfs_write_begin() local 288 page = grab_cache_page_write_begin(mapping, index, flags); in ecryptfs_write_begin() [all …]
|
/fs/nilfs2/ |
D | page.c | 38 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, in __nilfs_get_page_block() argument 48 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_page_block() 62 pgoff_t index = blkoff >> (PAGE_SHIFT - blkbits); in nilfs_grab_buffer() local 66 page = grab_cache_page(mapping, index); in nilfs_grab_buffer() 70 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer() 179 (unsigned long long)page->index, page->flags, m, ino); in nilfs_page_bug() 255 pgoff_t index = 0; in nilfs_copy_dirty_pages() local 260 if (!pagevec_lookup_tag(&pvec, smap, &index, PAGECACHE_TAG_DIRTY)) in nilfs_copy_dirty_pages() 270 dpage = grab_cache_page(dmap, page->index); in nilfs_copy_dirty_pages() 309 pgoff_t index = 0; in nilfs_copy_back_pages() local [all …]
|
D | btree.c | 145 nilfs_btree_node_get_key(const struct nilfs_btree_node *node, int index) in nilfs_btree_node_get_key() argument 147 return le64_to_cpu(*(nilfs_btree_node_dkeys(node) + index)); in nilfs_btree_node_get_key() 151 nilfs_btree_node_set_key(struct nilfs_btree_node *node, int index, __u64 key) in nilfs_btree_node_set_key() argument 153 *(nilfs_btree_node_dkeys(node) + index) = cpu_to_le64(key); in nilfs_btree_node_set_key() 157 nilfs_btree_node_get_ptr(const struct nilfs_btree_node *node, int index, in nilfs_btree_node_get_ptr() argument 160 return le64_to_cpu(*(nilfs_btree_node_dptrs(node, ncmax) + index)); in nilfs_btree_node_get_ptr() 164 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument 167 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr() 247 static void nilfs_btree_node_insert(struct nilfs_btree_node *node, int index, in nilfs_btree_node_insert() argument 257 if (index < nchildren) { in nilfs_btree_node_insert() [all …]
|
/fs/afs/ |
D | write.c | 134 pgoff_t index = pos >> PAGE_SHIFT; in afs_write_begin() local 138 vnode->fid.vid, vnode->fid.vnode, index, from, to); in afs_write_begin() 144 candidate->first = candidate->last = index; in afs_write_begin() 152 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin() 185 if (index > 0) { in afs_write_begin() 189 if (wb->last == index - 1 && wb->key == key && in afs_write_begin() 205 ASSERTRANGE(wb->first, <=, index, <=, wb->last); in afs_write_begin() 206 if (index == wb->first && from < wb->offset_first) in afs_write_begin() 208 if (index == wb->last && to > wb->to_last) in afs_write_begin() 263 vnode->fid.vid, vnode->fid.vnode, page->index); in afs_write_end() [all …]
|
D | file.c | 150 _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); in __afs_page_filler() 193 req->pos = (loff_t)page->index << PAGE_SHIFT; in __afs_page_filler() 292 struct page *page = req->pages[req->index]; in afs_readpages_page_done() 294 req->pages[req->index] = NULL; in afs_readpages_page_done() 320 pgoff_t index; in afs_readpages_one() local 327 index = first->index + 1; in afs_readpages_one() 331 if (page->index != index) in afs_readpages_one() 333 index++; in afs_readpages_one() 344 req->pos = first->index; in afs_readpages_one() 359 index = page->index; in afs_readpages_one() [all …]
|
/fs/ocfs2/ |
D | uptodate.c | 246 int index = -1; in ocfs2_buffer_cached() local 257 index = ocfs2_search_cache_array(ci, bh->b_blocknr); in ocfs2_buffer_cached() 263 trace_ocfs2_buffer_cached_end(index, item); in ocfs2_buffer_cached() 265 return (index != -1) || (item != NULL); in ocfs2_buffer_cached() 536 int index) in ocfs2_remove_metadata_array() argument 541 BUG_ON(index < 0 || index >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_remove_metadata_array() 542 BUG_ON(index >= ci->ci_num_cached); in ocfs2_remove_metadata_array() 547 index, ci->ci_num_cached); in ocfs2_remove_metadata_array() 553 if (ci->ci_num_cached && index < ci->ci_num_cached) { in ocfs2_remove_metadata_array() 554 bytes = sizeof(sector_t) * (ci->ci_num_cached - index); in ocfs2_remove_metadata_array() [all …]
|
/fs/cachefiles/ |
D | proc.c | 26 unsigned long index; in cachefiles_histogram_show() local 37 index = (unsigned long) v - 3; in cachefiles_histogram_show() 38 x = atomic_read(&cachefiles_lookup_histogram[index]); in cachefiles_histogram_show() 39 y = atomic_read(&cachefiles_mkdir_histogram[index]); in cachefiles_histogram_show() 40 z = atomic_read(&cachefiles_create_histogram[index]); in cachefiles_histogram_show() 44 t = (index * 1000) / HZ; in cachefiles_histogram_show() 46 seq_printf(m, "%4lu 0.%03u %9u %9u %9u\n", index, t, x, y, z); in cachefiles_histogram_show()
|