Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 79) sorted by relevance

1234

/fs/jfs/
A Djfs_debug.c57 struct proc_dir_entry *base; in jfs_proc_init() local
59 base = proc_mkdir("fs/jfs", NULL); in jfs_proc_init()
60 if (!base) in jfs_proc_init()
64 proc_create_single("lmstats", 0, base, jfs_lmstats_proc_show); in jfs_proc_init()
65 proc_create_single("txstats", 0, base, jfs_txstats_proc_show); in jfs_proc_init()
66 proc_create_single("xtstat", 0, base, jfs_xtstat_proc_show); in jfs_proc_init()
67 proc_create_single("mpstat", 0, base, jfs_mpstat_proc_show); in jfs_proc_init()
70 proc_create_single("TxAnchor", 0, base, jfs_txanchor_proc_show); in jfs_proc_init()
71 proc_create("loglevel", 0, base, &jfs_loglevel_proc_ops); in jfs_proc_init()
A Djfs_xtree.c240 int base, index, lim, btindex; in xtSearch() local
372 for (base = XTENTRYSTART; lim; lim >>= 1) { in xtSearch()
373 index = base + (lim >> 1); in xtSearch()
422 base = index + 1; in xtSearch()
433 if (base < le16_to_cpu(p->header.nextindex)) in xtSearch()
434 next = offsetXAD(&p->xad[base]); in xtSearch()
457 btsp->index = base; in xtSearch()
462 if (base == btindex || base == btindex + 1) in xtSearch()
466 jfs_ip->btindex = base; in xtSearch()
480 index = base ? base - 1 : base; in xtSearch()
/fs/kernfs/
A Dsymlink.c59 struct kernfs_node *base, *kn; in kernfs_get_target_path() local
64 base = parent; in kernfs_get_target_path()
65 while (kernfs_parent(base)) { in kernfs_get_target_path()
67 while (kernfs_parent(kn) && base != kn) in kernfs_get_target_path()
70 if (base == kn) in kernfs_get_target_path()
78 base = kernfs_parent(base); in kernfs_get_target_path()
83 while (kernfs_parent(kn) && kn != base) { in kernfs_get_target_path()
97 while (kernfs_parent(kn) && kn != base) { in kernfs_get_target_path()
/fs/nfs_common/
A Dnfsacl.c93 int nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, in nfsacl_encode() argument
112 xdr_encode_word(buf, base, entries)) in nfsacl_encode()
133 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
172 unsigned int base; in nfs_stream_encode_acl() local
200 base = xdr_stream_pos(xdr); in nfs_stream_encode_acl()
204 err = xdr_encode_array2(xdr->buf, base, &nfsacl_desc.desc); in nfs_stream_encode_acl()
351 if (xdr_decode_word(buf, base, &entries) || in nfsacl_decode()
355 err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_decode()
396 unsigned int base; in nfs_stream_decode_acl() local
404 base = xdr_stream_pos(xdr); in nfs_stream_decode_acl()
[all …]
/fs/bcachefs/
A Deytzinger.h243 static inline int eytzinger0_find_le(void *base, size_t nr, size_t size, in eytzinger0_find_le() argument
246 void *base1 = base - size; in eytzinger0_find_le()
256 static inline int eytzinger0_find_gt(void *base, size_t nr, size_t size, in eytzinger0_find_gt() argument
259 void *base1 = base - size; in eytzinger0_find_gt()
269 static inline int eytzinger0_find_ge(void *base, size_t nr, size_t size, in eytzinger0_find_ge() argument
272 void *base1 = base - size; in eytzinger0_find_ge()
281 #define eytzinger0_find(base, nr, size, _cmp, search) \ argument
284 void *_base1 = (void *)(base) - _size; \
A Deytzinger.c19 static bool is_aligned(const void *base, size_t size, unsigned char align) in is_aligned() argument
23 (void)base; in is_aligned()
25 lsbits |= (unsigned char)(uintptr_t)base; in is_aligned()
234 void eytzinger0_sort_r(void *base, size_t n, size_t size, in eytzinger0_sort_r() argument
239 void *base1 = base - size; in eytzinger0_sort_r()
244 void eytzinger0_sort(void *base, size_t n, size_t size, in eytzinger0_sort() argument
253 return eytzinger0_sort_r(base, n, size, _CMP_WRAPPER, SWAP_WRAPPER, &w); in eytzinger0_sort()
A Dutil.c77 u64 base = 1024; in parse_unit_suffix() local
99 base = 1000; in parse_unit_suffix()
106 ret = bch2_pow(base, u, res); in parse_unit_suffix()
618 void bch2_bio_map(struct bio *bio, void *base, size_t size) in bch2_bio_map() argument
621 struct page *page = is_vmalloc_addr(base) in bch2_bio_map()
622 ? vmalloc_to_page(base) in bch2_bio_map()
623 : virt_to_page(base); in bch2_bio_map()
624 unsigned offset = offset_in_page(base); in bch2_bio_map()
629 base += len; in bch2_bio_map()
A Dbtree_write_buffer.c71 static noinline void wb_sort(struct wb_key_ref *base, size_t num) in wb_sort() argument
84 swap(base[0], base[n]); in wb_sort()
101 b = wb_key_ref_cmp(base + c, base + d) ? c : d; in wb_sort()
106 while (b != a && wb_key_ref_cmp(base + a, base + b)) in wb_sort()
111 swap(base[b], base[c]); in wb_sort()
/fs/ext4/
A Dxattr.c1873 bs->s.base = BHDR(bs->bh); in ext4_xattr_block_find()
1917 if (s->base) { in ext4_xattr_block_set()
1970 if (s->base == NULL) in ext4_xattr_block_set()
2010 if (s->base == NULL) in ext4_xattr_block_set()
2200 kfree(s->base); in ext4_xattr_block_set()
2760 void *base, *end; in ext4_expand_extra_isize_ea() local
2777 base = IFIRST(header); in ext4_expand_extra_isize_ea()
2779 min_offs = end - base; in ext4_expand_extra_isize_ea()
2782 ifree = ext4_xattr_free_space(base, &min_offs, base, &total_ino); in ext4_expand_extra_isize_ea()
2803 base = BHDR(bh); in ext4_expand_extra_isize_ea()
[all …]
/fs/ufs/
A Dutil.h384 unsigned base, count, pos; in _ubh_find_next_zero_bit_() local
389 base = offset >> uspi->s_bpfshift; in _ubh_find_next_zero_bit_()
394 pos = find_next_zero_bit_le(ubh->bh[base]->b_data, count, offset); in _ubh_find_next_zero_bit_()
397 base++; in _ubh_find_next_zero_bit_()
400 return (base << uspi->s_bpfshift) + pos - begin; in _ubh_find_next_zero_bit_()
431 unsigned base, count, pos, size; in _ubh_find_last_zero_bit_() local
436 base = start >> uspi->s_bpfshift; in _ubh_find_last_zero_bit_()
443 pos = find_last_zero_bit (ubh->bh[base]->b_data, in _ubh_find_last_zero_bit_()
447 base--; in _ubh_find_last_zero_bit_()
450 return (base << uspi->s_bpfshift) + pos - begin; in _ubh_find_last_zero_bit_()
/fs/nfs/
A Dnamespace.c58 const char *base; in nfs_path() local
99 base = dentry->d_fsdata; in nfs_path()
100 if (!base) { in nfs_path()
106 namelen = strlen(base); in nfs_path()
109 while (namelen > 0 && base[namelen - 1] == '/') in nfs_path()
119 memcpy(end, base, namelen); in nfs_path()
/fs/xfs/libxfs/
A Dxfs_attr_leaf.c175 to->freemap[i].base = be16_to_cpu(hdr3->freemap[i].base); in xfs_attr3_leaf_hdr_from_disk()
189 to->freemap[i].base = be16_to_cpu(from->hdr.freemap[i].base); in xfs_attr3_leaf_hdr_from_disk()
218 hdr3->freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
233 to->hdr.freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
373 if (ichdr.freemap[i].base & 0x3) in xfs_attr3_leaf_verify()
382 if (end < ichdr.freemap[i].base) in xfs_attr3_leaf_verify()
1638 ichdr_dst->freemap[0].base; in xfs_attr3_leaf_compact()
2181 } else if (ichdr.freemap[i].base == in xfs_attr3_leaf_remove()
2198 ichdr.freemap[after].base = 0; in xfs_attr3_leaf_remove()
2700 ichdr_d->freemap[1].base = 0; in xfs_attr3_leaf_moveents()
[all …]
/fs/erofs/
A Ddata.c13 if (!buf->base) in erofs_unmap_metabuf()
15 kunmap_local(buf->base); in erofs_unmap_metabuf()
16 buf->base = NULL; in erofs_unmap_metabuf()
47 if (!buf->base) in erofs_bread()
48 buf->base = kmap_local_page(buf->page); in erofs_bread()
49 return buf->base + (offset & ~PAGE_MASK); in erofs_bread()
321 iomap->private = buf.base; in erofs_iomap_begin()
336 .base = ptr, in erofs_iomap_end()
/fs/jffs2/
A Dnodelist.c122 static void jffs2_fragtree_insert(struct jffs2_node_frag *newfrag, struct jffs2_node_frag *base) in jffs2_fragtree_insert() argument
124 struct rb_node *parent = &base->rb; in jffs2_fragtree_insert()
131 base = rb_entry(parent, struct jffs2_node_frag, rb); in jffs2_fragtree_insert()
133 if (newfrag->ofs > base->ofs) in jffs2_fragtree_insert()
134 link = &base->rb.rb_right; in jffs2_fragtree_insert()
135 else if (newfrag->ofs < base->ofs) in jffs2_fragtree_insert()
136 link = &base->rb.rb_left; in jffs2_fragtree_insert()
138 JFFS2_ERROR("duplicate frag at %08x (%p,%p)\n", newfrag->ofs, newfrag, base); in jffs2_fragtree_insert()
143 rb_link_node(&newfrag->rb, &base->rb, link); in jffs2_fragtree_insert()
/fs/overlayfs/
A Dnamei.c207 struct dentry *base, int len, in ovl_lookup_positive_unlocked() argument
211 &QSTR_LEN(name, len), base); in ovl_lookup_positive_unlocked()
227 static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_single() argument
247 if (ovl_dentry_casefolded(base)) { in ovl_lookup_single()
342 is_upper ? "upper" : "lower", base, in ovl_lookup_single()
349 static int ovl_lookup_layer(struct dentry *base, struct ovl_lookup_data *d, in ovl_lookup_layer() argument
358 return ovl_lookup_single(base, d, d->name.name, d->name.len, in ovl_lookup_layer()
361 while (!IS_ERR_OR_NULL(base) && d_can_lookup(base)) { in ovl_lookup_layer()
371 err = ovl_lookup_single(base, d, s, thislen, in ovl_lookup_layer()
372 d->name.len - rem, next, &base, in ovl_lookup_layer()
[all …]
/fs/smb/server/
A Dtransport_tcp.c129 size_t base = 0; in kvec_array_init() local
135 base += copy; in kvec_array_init()
136 if (iov->iov_len == base) { in kvec_array_init()
139 base = 0; in kvec_array_init()
144 new->iov_base += base; in kvec_array_init()
145 new->iov_len -= base; in kvec_array_init()
A Dsmb_common.c502 char base[9], extension[4]; in ksmbd_extract_shortname() local
540 base[baselen++] = toupper(*p); in ksmbd_extract_shortname()
544 base[baselen] = MAGIC_CHAR; in ksmbd_extract_shortname()
545 memcpy(out, base, baselen + 1); in ksmbd_extract_shortname()
/fs/nilfs2/
A Dioctl.c52 void __user *base = (void __user *)(unsigned long)argv->v_base; in nilfs_ioctl_wrap_copy() local
84 copy_from_user(buf, base + argv->v_size * i, in nilfs_ioctl_wrap_copy()
97 copy_to_user(base + argv->v_size * i, buf, in nilfs_ioctl_wrap_copy()
839 void __user *base; in nilfs_ioctl_clean_segments() local
886 base = (void __user *)(unsigned long)argv[n].v_base; in nilfs_ioctl_clean_segments()
897 if (copy_from_user(kbufs[n], base, len)) { in nilfs_ioctl_clean_segments()
1184 void __user *base; in nilfs_ioctl_set_suinfo() local
1215 base = (void __user *)(unsigned long)argv.v_base; in nilfs_ioctl_set_suinfo()
1222 if (copy_from_user(kbuf, base, len)) { in nilfs_ioctl_set_suinfo()
/fs/
A Dnamei.c1689 dir = base->d_inode; in lookup_one_qstr_excl()
1693 dentry = d_alloc(base, name); in lookup_one_qstr_excl()
2888 int err = base->d_op->d_hash(base, qname); in lookup_noperm_common()
2928 return d_lookup(base, name); in try_lookup_noperm()
2969 struct dentry *base) in lookup_one() argument
2997 struct dentry *base) in lookup_one_unlocked() argument
3006 ret = lookup_dcache(name, base, 0); in lookup_one_unlocked()
3008 ret = lookup_slow(name, base, 0); in lookup_one_unlocked()
3032 struct dentry *base) in lookup_one_positive_unlocked() argument
3069 ret = lookup_slow(name, base, 0); in lookup_noperm_unlocked()
[all …]
A Dfile_table.c427 struct file *alloc_file_clone(struct file *base, int flags, in alloc_file_clone() argument
432 f = alloc_file(&base->f_path, flags, fops); in alloc_file_clone()
435 f->f_mapping = base->f_mapping; in alloc_file_clone()
/fs/nfsd/
A Dnfscache.c368 unsigned int base, len; in nfsd_cache_csum() local
388 base = subbuf.page_base & ~PAGE_MASK; in nfsd_cache_csum()
390 p = page_address(subbuf.pages[idx]) + base; in nfsd_cache_csum()
391 len = min_t(unsigned int, PAGE_SIZE - base, remaining); in nfsd_cache_csum()
394 base = 0; in nfsd_cache_csum()
/fs/fuse/
A Dioctl.c105 if (fiov[i].base != (unsigned long) fiov[i].base || in fuse_copy_ioctl_iovec()
109 dst[i].iov_base = (void __user *) (unsigned long) fiov[i].base; in fuse_copy_ioctl_iovec()
114 (ptr_to_compat(dst[i].iov_base) != fiov[i].base || in fuse_copy_ioctl_iovec()
/fs/ocfs2/
A Dxattr.c122 void *base; member
1175 xs->base = (void *)xs->header; in ocfs2_xattr_ibody_get()
1191 (xs->base + le16_to_cpu( in ocfs2_xattr_ibody_get()
2704 xs->base = (void *)xs->header; in ocfs2_xattr_ibody_find()
3052 char *base = NULL; in ocfs2_calc_xattr_set_need() local
3083 base = xis->base; in ocfs2_calc_xattr_set_need()
3102 base = xbs->base; in ocfs2_calc_xattr_set_need()
5764 char *base; in ocfs2_prepare_refcount_xattr() local
5779 base = xis->base; in ocfs2_prepare_refcount_xattr()
5813 base = xbs->base; in ocfs2_prepare_refcount_xattr()
[all …]
/fs/afs/
A Ddir.c373 unsigned int blknum, base, hdr, pos, next, nr_slots; in afs_dir_iterate_block() local
378 base = blknum * AFS_DIR_SLOTS_PER_BLOCK; in afs_dir_iterate_block()
380 pos = DIV_ROUND_UP(ctx->pos, AFS_DIR_DIRENT_SIZE) - base; in afs_dir_iterate_block()
389 _debug("ENT[%x]: Unused", base + slot); in afs_dir_iterate_block()
392 ctx->pos = (base + next) * sizeof(union afs_xdr_dirent); in afs_dir_iterate_block()
402 base + slot, nlen); in afs_dir_iterate_block()
407 base + slot, (slot < pos ? "skip" : "fill"), in afs_dir_iterate_block()
414 base + slot, nlen); in afs_dir_iterate_block()
424 base + slot, tmp, nr_slots); in afs_dir_iterate_block()
432 ctx->pos = (base + next) * sizeof(union afs_xdr_dirent); in afs_dir_iterate_block()
[all …]
/fs/fat/
A Dnamei_vfat.c330 unsigned char base[9], ext[4], buf[5], *p; in vfat_create_shortname() local
379 for (baselen = i = 0, p = base, ip = uname; i < sz; i++, ip++) { in vfat_create_shortname()
429 base[baselen] = '\0'; in vfat_create_shortname()
432 if (base[0] == DELETED_FLAG) in vfat_create_shortname()
433 base[0] = 0x05; in vfat_create_shortname()
441 memcpy(name_res, base, baselen); in vfat_create_shortname()

Completed in 80 milliseconds

1234