Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/fs/jfs/
Djfs_dtree.c104 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 …]
Djfs_xtree.c80 s16 index; member
131 int index; in xtLookup() local
164 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
179 xad = &p->xad[index]; in xtLookup()
225 int base, index, lim, btindex; in xtSearch() local
268 (index = jfs_ip->btindex) < in xtSearch()
270 xad = &p->xad[index]; in xtSearch()
283 index++; in xtSearch()
284 if (index < in xtSearch()
337 btsp->index = index; in xtSearch()
[all …]
/fs/ntfs3/
Drun.c34 static bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *index) in run_lookup() argument
40 *index = 0; in run_lookup()
50 *index = 0; in run_lookup()
55 *index = 0; in run_lookup()
61 *index = run->count; in run_lookup()
66 *index = max_idx; in run_lookup()
81 *index = mid_idx; in run_lookup()
86 *index = max_idx + 1; in run_lookup()
93 static void run_consolidate(struct runs_tree *run, size_t index) in run_consolidate() argument
96 struct ntfs_run *r = run->runs + index; in run_consolidate()
[all …]
/fs/overlayfs/
Dnamei.c490 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index) in ovl_index_upper() argument
495 if (!d_is_dir(index)) in ovl_index_upper()
496 return dget(index); in ovl_index_upper()
498 fh = ovl_get_fh(ofs, index, OVL_XATTR_UPPER); in ovl_index_upper()
510 index, upper); in ovl_index_upper()
523 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index) in ovl_verify_index() argument
532 if (!d_inode(index)) in ovl_verify_index()
536 if (index->d_name.len < sizeof(struct ovl_fb)*2) in ovl_verify_index()
540 len = index->d_name.len / 2; in ovl_verify_index()
546 if (hex2bin(fh->buf, index->d_name.name, len)) in ovl_verify_index()
[all …]
Dexport.c283 struct dentry *index) in ovl_obtain_alias() argument
286 struct dentry *upper = upper_alias ?: index; in ovl_obtain_alias()
292 .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/nls/
Dnls_euc-jp.c287 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/squashfs/
Dfile.c49 int index) in locate_meta_index() argument
57 TRACE("locate_meta_index: index %d, offset %d\n", index, offset); in locate_meta_index()
65 msblk->meta_index[i].offset <= index && in locate_meta_index()
228 static int fill_meta_index(struct inode *inode, int index, in fill_meta_index() argument
244 index /= SQUASHFS_META_INDEXES * skip; in fill_meta_index()
246 while (offset < index) { in fill_meta_index()
247 meta = locate_meta_index(inode, offset + 1, index); in fill_meta_index()
254 offset = index < meta->offset + meta->entries ? index : in fill_meta_index()
274 for (i = meta->offset + meta->entries; i <= index && in fill_meta_index()
327 static int read_blocklist(struct inode *inode, int index, u64 *block) in read_blocklist() argument
[all …]
Dnamei.c71 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 …]
Dblock.c79 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument
83 const u64 read_start = round_down(index, msblk->devblksize); in squashfs_bio_read()
85 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read()
87 int offset = read_start - round_down(index, PAGE_SIZE); in squashfs_bio_read()
121 *block_offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_bio_read()
140 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
156 index, compressed ? "" : "un", length, output->length); in squashfs_read_data()
165 if (index + 2 > msblk->bytes_used) { in squashfs_read_data()
169 res = squashfs_bio_read(sb, index, 2, &bio, &offset); in squashfs_read_data()
196 index += 2; in squashfs_read_data()
[all …]
/fs/ntfs/
Ddir.c115 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_lookup_inode_by_name()
117 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_lookup_inode_by_name()
118 le32_to_cpu(ir->index.entries_offset)); in ntfs_lookup_inode_by_name()
309 dir_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_lookup_inode_by_name()
321 dir_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_lookup_inode_by_name()
344 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_lookup_inode_by_name()
345 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
351 le32_to_cpu(ia->index.allocated_size) + 0x18, in ntfs_lookup_inode_by_name()
352 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name()
355 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name()
[all …]
Dindex.c131 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/xfs/libxfs/
Dxfs_bmap_btree.h22 #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 …]
Dxfs_rmap_btree.h22 #define XFS_RMAP_REC_ADDR(block, index) \ argument
25 (((index) - 1) * sizeof(struct xfs_rmap_rec))))
27 #define XFS_RMAP_KEY_ADDR(block, index) \ argument
30 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key)))
32 #define XFS_RMAP_HIGH_KEY_ADDR(block, index) \ argument
36 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key)))
38 #define XFS_RMAP_PTR_ADDR(block, index, maxrecs) \ argument
42 ((index) - 1) * sizeof(xfs_rmap_ptr_t)))
Dxfs_dir2_leaf.c493 int index, in xfs_dir3_leaf_find_stale() argument
500 for (*lowstale = index - 1; *lowstale >= 0; --*lowstale) { in xfs_dir3_leaf_find_stale()
511 for (*highstale = index; *highstale < leafhdr->count; ++*highstale) { in xfs_dir3_leaf_find_stale()
515 if (*lowstale >= 0 && index - *lowstale <= *highstale - index) in xfs_dir3_leaf_find_stale()
524 int index, /* leaf table position */ in xfs_dir3_leaf_find_entry() argument
539 lep = &ents[index]; in xfs_dir3_leaf_find_entry()
540 if (index < leafhdr->count) in xfs_dir3_leaf_find_entry()
542 (leafhdr->count - index) * sizeof(*lep)); in xfs_dir3_leaf_find_entry()
547 *lfloglow = index; in xfs_dir3_leaf_find_entry()
562 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry()
[all …]
/fs/crypto/
Dcrypto.c80 void fscrypt_generate_iv(union fscrypt_iv *iv, u64 index, in fscrypt_generate_iv() argument
88 WARN_ON_ONCE(index > U32_MAX); in fscrypt_generate_iv()
90 index |= (u64)ci->ci_inode->i_ino << 32; in fscrypt_generate_iv()
92 WARN_ON_ONCE(index > U32_MAX); in fscrypt_generate_iv()
93 index = (u32)(ci->ci_hashed_ino + index); in fscrypt_generate_iv()
97 iv->index = cpu_to_le64(index); in fscrypt_generate_iv()
102 fscrypt_direction_t rw, u64 index, in fscrypt_crypt_data_unit() argument
119 fscrypt_generate_iv(&iv, index, ci); in fscrypt_crypt_data_unit()
142 (rw == FS_DECRYPT ? "De" : "En"), index, res); in fscrypt_crypt_data_unit()
184 u64 index = ((u64)page->index << (PAGE_SHIFT - du_bits)) + in fscrypt_encrypt_pagecache_blocks() local
[all …]
/fs/afs/
Dfs_probe.c80 unsigned int index = ac->index; in afs_fs_probe_not_done() local
91 set_bit(index, &alist->failed); in afs_fs_probe_not_done()
105 unsigned int index = call->addr_ix; in afs_fileserver_probe_result() local
109 _enter("%pU,%u", &server->uuid, index); in afs_fileserver_probe_result()
125 clear_bit(index, &alist->responded); in afs_fileserver_probe_result()
139 clear_bit(index, &alist->responded); in afs_fileserver_probe_result()
140 set_bit(index, &alist->failed); in afs_fileserver_probe_result()
151 clear_bit(index, &alist->failed); in afs_fileserver_probe_result()
156 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result()
161 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result()
[all …]
Dvl_rotate.c82 vc->index = -1; in afs_start_vl_iteration()
99 vc->untried, vc->index, in afs_select_vlserver()
100 vc->ac.tried, vc->ac.index, in afs_select_vlserver()
192 vc->index = vc->server_list->preferred; in afs_select_vlserver()
193 if (test_bit(vc->index, &vc->untried)) in afs_select_vlserver()
196 vc->index = -1; in afs_select_vlserver()
205 vc->index = i; in afs_select_vlserver()
210 if (vc->index == -1) in afs_select_vlserver()
214 _debug("use %d", vc->index); in afs_select_vlserver()
215 __clear_bit(vc->index, &vc->untried); in afs_select_vlserver()
[all …]
Dvl_probe.c53 unsigned int index = call->addr_ix; in afs_vlserver_probe_result() local
57 _enter("%s,%u,%u,%d,%d", server->name, server_index, index, ret, call->abort_code); in afs_vlserver_probe_result()
91 clear_bit(index, &alist->responded); in afs_vlserver_probe_result()
92 set_bit(index, &alist->failed); in afs_vlserver_probe_result()
103 set_bit(index, &alist->responded); in afs_vlserver_probe_result()
104 clear_bit(index, &alist->failed); in afs_vlserver_probe_result()
109 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result()
114 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result()
122 alist->preferred = index; in afs_vlserver_probe_result()
134 server_index, index, &alist->addrs[index].transport, rtt_us, ret); in afs_vlserver_probe_result()
[all …]
Drotate.c35 op->index = READ_ONCE(op->server_list->preferred); in afs_start_fs_iteration()
43 op->index = i; in afs_start_fs_iteration()
119 op->untried, op->index, in afs_select_fileserver()
120 op->ac.tried, op->ac.index, in afs_select_fileserver()
160 op->server_list->vnovol_mask |= 1 << op->index; in afs_select_fileserver()
336 _debug("server %u", op->index); in afs_select_fileserver()
337 if (test_bit(op->index, &op->untried)) in afs_select_fileserver()
343 op->index = -1; in afs_select_fileserver()
352 op->index = i; in afs_select_fileserver()
357 if (op->index == -1) in afs_select_fileserver()
[all …]
/fs/ecryptfs/
Dmmap.c33 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()
59 "page (upper index [0x%.16lx])\n", page->index); in ecryptfs_writepage()
118 loff_t view_extent_num = ((((loff_t)page->index) in ecryptfs_copy_up_encrypted_with_header()
189 rc = ecryptfs_read_lower_page_segment(page, page->index, 0, in ecryptfs_read_folio()
207 page, page->index, 0, PAGE_SIZE, in ecryptfs_read_folio()
229 page->index); in ecryptfs_read_folio()
242 if ((i_size_read(inode) / PAGE_SIZE) != page->index) in fill_zeros_to_end_of_page()
271 pgoff_t index = pos >> PAGE_SHIFT; in ecryptfs_write_begin() local
276 page = grab_cache_page_write_begin(mapping, index); in ecryptfs_write_begin()
[all …]
/fs/nilfs2/
Dpage.c29 __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()
169 (unsigned long long)page->index, page->flags, m, ino); in nilfs_page_bug()
245 pgoff_t index = 0; in nilfs_copy_dirty_pages() local
250 if (!pagevec_lookup_tag(&pvec, smap, &index, PAGECACHE_TAG_DIRTY)) in nilfs_copy_dirty_pages()
260 dpage = grab_cache_page(dmap, page->index); in nilfs_copy_dirty_pages()
309 pgoff_t index = folio->index; in nilfs_copy_back_pages() local
[all …]
Dbtree.c137 nilfs_btree_node_get_key(const struct nilfs_btree_node *node, int index) in nilfs_btree_node_get_key() argument
139 return le64_to_cpu(*(nilfs_btree_node_dkeys(node) + index)); in nilfs_btree_node_get_key()
143 nilfs_btree_node_set_key(struct nilfs_btree_node *node, int index, __u64 key) in nilfs_btree_node_set_key() argument
145 *(nilfs_btree_node_dkeys(node) + index) = cpu_to_le64(key); in nilfs_btree_node_set_key()
149 nilfs_btree_node_get_ptr(const struct nilfs_btree_node *node, int index, in nilfs_btree_node_get_ptr() argument
152 return le64_to_cpu(*(nilfs_btree_node_dptrs(node, ncmax) + index)); in nilfs_btree_node_get_ptr()
156 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument
159 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr()
239 static void nilfs_btree_node_insert(struct nilfs_btree_node *node, int index, in nilfs_btree_node_insert() argument
249 if (index < nchildren) { in nilfs_btree_node_insert()
[all …]
/fs/exfat/
Dnls.c656 unsigned int i, index = 0; in exfat_load_upcase_table() local
680 for (i = 0; i < sect_size && index <= 0xFFFF; i += 2) { in exfat_load_upcase_table()
684 index += uni; in exfat_load_upcase_table()
686 } else if (uni == index) { in exfat_load_upcase_table()
687 index++; in exfat_load_upcase_table()
691 upcase_table[index] = uni; in exfat_load_upcase_table()
692 index++; in exfat_load_upcase_table()
699 if (index >= 0xFFFF && utbl_checksum == chksum) in exfat_load_upcase_table()
703 index, chksum, utbl_checksum); in exfat_load_upcase_table()
716 unsigned int index = 0; in exfat_load_default_upcase_table() local
[all …]
/fs/smb/server/
Dasn1.c63 int index = *ofs; in encode_asn_tag() local
68 buf[index++] = tag; in encode_asn_tag()
71 buf[index++] = len; in encode_asn_tag()
73 buf[index++] = 0x80 | hdr_len; in encode_asn_tag()
75 buf[index++] = (len >> (i * 8)) & 0xFF; in encode_asn_tag()
79 len = len - (index - *ofs); in encode_asn_tag()
80 buf[index++] = seq; in encode_asn_tag()
83 buf[index++] = len; in encode_asn_tag()
85 buf[index++] = 0x80 | hdr_len; in encode_asn_tag()
87 buf[index++] = (len >> (i * 8)) & 0xFF; in encode_asn_tag()
[all …]
/fs/
Dfilesystems.c136 int err, index; in fs_index() local
145 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index()
147 err = index; in fs_index()
156 static int fs_name(unsigned int index, char __user * buf) in fs_name() argument
162 for (tmp = file_systems; tmp; tmp = tmp->next, index--) in fs_name()
163 if (index <= 0 && try_module_get(tmp->owner)) in fs_name()
179 int index; in fs_maxindex() local
182 for (tmp = file_systems, index = 0 ; tmp ; tmp = tmp->next, index++) in fs_maxindex()
185 return index; in fs_maxindex()

12345678910>>...12