Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 85) sorted by relevance

1234

/fs/cifs/
Dcifs_unicode.c32 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument
41 *target = ':'; in convert_sfu_char()
44 *target = '*'; in convert_sfu_char()
47 *target = '?'; in convert_sfu_char()
50 *target = '|'; in convert_sfu_char()
53 *target = '>'; in convert_sfu_char()
56 *target = '<'; in convert_sfu_char()
66 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument
69 *target = src_char - 0xF000; in convert_sfm_char()
74 *target = ':'; in convert_sfm_char()
[all …]
Dmisc.c1269 char *target, *tip = NULL; in match_target_ip() local
1274 target = kzalloc(share_len + 3, GFP_KERNEL); in match_target_ip()
1275 if (!target) { in match_target_ip()
1280 scnprintf(target, share_len + 3, "\\\\%.*s", (int)share_len, share); in match_target_ip()
1282 cifs_dbg(FYI, "%s: target name: %s\n", __func__, target + 2); in match_target_ip()
1284 rc = dns_resolve_server_name_to_ip(target, &tip, NULL); in match_target_ip()
1303 kfree(target); in match_target_ip()
/fs/ocfs2/dlm/
Ddlmthread.c343 struct dlm_lock *lock, *target; in dlm_shuffle_lists() local
364 target = list_entry(res->converting.next, struct dlm_lock, list); in dlm_shuffle_lists()
365 if (target->ml.convert_type == LKM_IVMODE) { in dlm_shuffle_lists()
371 if (lock==target) in dlm_shuffle_lists()
374 target->ml.convert_type)) { in dlm_shuffle_lists()
382 if (lock->ml.highest_blocked < target->ml.convert_type) in dlm_shuffle_lists()
384 target->ml.convert_type; in dlm_shuffle_lists()
389 if (lock==target) in dlm_shuffle_lists()
392 target->ml.convert_type)) { in dlm_shuffle_lists()
398 if (lock->ml.highest_blocked < target->ml.convert_type) in dlm_shuffle_lists()
[all …]
Ddlmmaster.c110 u8 target);
2541 struct dlm_lock_resource *res, u8 target) in dlm_migrate_lockres() argument
2559 target); in dlm_migrate_lockres()
2583 namelen, target, dlm->node_num); in dlm_migrate_lockres()
2604 if (dlm_mark_lockres_migrating(dlm, res, target) < 0) { in dlm_migrate_lockres()
2607 res->lockname.name, target); in dlm_migrate_lockres()
2648 ret = dlm_send_one_lockres(dlm, res, mres, target, in dlm_migrate_lockres()
2653 target, ret); in dlm_migrate_lockres()
2663 dlm_wait_for_node_death(dlm, target, in dlm_migrate_lockres()
2687 res->owner == target) in dlm_migrate_lockres()
[all …]
/fs/sysfs/
Dsymlink.c24 struct kernfs_node *kn, *target = NULL; in sysfs_do_create_link_sd() local
36 target = target_kobj->sd; in sysfs_do_create_link_sd()
37 kernfs_get(target); in sysfs_do_create_link_sd()
41 if (!target) in sysfs_do_create_link_sd()
44 kn = kernfs_create_link(parent, name, target); in sysfs_do_create_link_sd()
45 kernfs_put(target); in sysfs_do_create_link_sd()
61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd() argument
64 return sysfs_do_create_link_sd(kn, target, name, 1); in sysfs_create_link_sd()
67 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link() argument
80 return sysfs_do_create_link_sd(parent, target, name, warn); in sysfs_do_create_link()
[all …]
Dgroup.c383 struct kobject *target, const char *link_name) in sysfs_add_link_to_group() argument
392 error = sysfs_create_link_sd(parent, target, link_name); in sysfs_add_link_to_group()
432 struct kernfs_node *target; in compat_only_sysfs_link_entry_to_kobj() local
442 target = target_kobj->sd; in compat_only_sysfs_link_entry_to_kobj()
443 if (target) in compat_only_sysfs_link_entry_to_kobj()
444 kernfs_get(target); in compat_only_sysfs_link_entry_to_kobj()
446 if (!target) in compat_only_sysfs_link_entry_to_kobj()
449 entry = kernfs_find_and_get(target, target_name); in compat_only_sysfs_link_entry_to_kobj()
451 kernfs_put(target); in compat_only_sysfs_link_entry_to_kobj()
463 kernfs_put(target); in compat_only_sysfs_link_entry_to_kobj()
/fs/ksmbd/
Dunicode.c31 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
49 *target = ':'; in cifs_mapchar()
52 *target = '*'; in cifs_mapchar()
55 *target = '?'; in cifs_mapchar()
58 *target = '|'; in cifs_mapchar()
61 *target = '>'; in cifs_mapchar()
64 *target = '<'; in cifs_mapchar()
74 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
84 len = utf16s_to_utf8s(from, 3, UTF16_LITTLE_ENDIAN, target, 6); in cifs_mapchar()
90 *target = '?'; in cifs_mapchar()
[all …]
/fs/kernfs/
Dsymlink.c27 struct kernfs_node *target) in kernfs_create_link() argument
34 if (target->iattr) { in kernfs_create_link()
35 uid = target->iattr->ia_uid; in kernfs_create_link()
36 gid = target->iattr->ia_gid; in kernfs_create_link()
45 kn->ns = target->ns; in kernfs_create_link()
46 kn->symlink.target_kn = target; in kernfs_create_link()
47 kernfs_get(target); /* ref owned by symlink */ in kernfs_create_link()
58 struct kernfs_node *target, char *path) in kernfs_get_target_path() argument
67 kn = target->parent; in kernfs_get_target_path()
83 kn = target; in kernfs_get_target_path()
[all …]
/fs/xfs/
Dxfs_buf.h198 struct xfs_buf *xfs_buf_incore(struct xfs_buftarg *target,
202 int xfs_buf_get_map(struct xfs_buftarg *target, struct xfs_buf_map *map,
204 int xfs_buf_read_map(struct xfs_buftarg *target, struct xfs_buf_map *map,
207 void xfs_buf_readahead_map(struct xfs_buftarg *target,
213 struct xfs_buftarg *target, in xfs_buf_get() argument
220 return xfs_buf_get_map(target, &map, 1, 0, bpp); in xfs_buf_get()
225 struct xfs_buftarg *target, in xfs_buf_read() argument
234 return xfs_buf_read_map(target, &map, 1, flags, bpp, ops, in xfs_buf_read()
240 struct xfs_buftarg *target, in xfs_buf_readahead() argument
246 return xfs_buf_readahead_map(target, &map, 1, ops); in xfs_buf_readahead()
[all …]
Dxfs_buf.c212 struct xfs_buftarg *target, in _xfs_buf_alloc() argument
239 bp->b_target = target; in _xfs_buf_alloc()
240 bp->b_mount = target->bt_mount; in _xfs_buf_alloc()
620 struct xfs_buftarg *target, in xfs_buf_incore() argument
629 error = xfs_buf_find(target, &map, 1, flags, NULL, &bp); in xfs_buf_incore()
642 struct xfs_buftarg *target, in xfs_buf_get_map() argument
653 error = xfs_buf_find(target, map, nmaps, flags, NULL, &bp); in xfs_buf_get_map()
659 error = _xfs_buf_alloc(target, map, nmaps, flags, &new_bp); in xfs_buf_get_map()
676 error = xfs_buf_find(target, map, nmaps, flags, new_bp, &bp); in xfs_buf_get_map()
687 xfs_warn_ratelimited(target->bt_mount, in xfs_buf_get_map()
[all …]
Dxfs_trans.h173 int xfs_trans_get_buf_map(struct xfs_trans *tp, struct xfs_buftarg *target,
180 struct xfs_buftarg *target, in xfs_trans_get_buf() argument
187 return xfs_trans_get_buf_map(tp, target, &map, 1, flags, bpp); in xfs_trans_get_buf()
192 struct xfs_buftarg *target,
202 struct xfs_buftarg *target, in xfs_trans_read_buf() argument
210 return xfs_trans_read_buf_map(mp, tp, target, &map, 1, in xfs_trans_read_buf()
Dxfs_trans_buf.c25 struct xfs_buftarg *target, in xfs_trans_buf_item_match() argument
40 blip->bli_buf->b_target == target && in xfs_trans_buf_item_match()
118 struct xfs_buftarg *target, in xfs_trans_get_buf_map() argument
130 return xfs_buf_get_map(target, map, nmaps, flags, bpp); in xfs_trans_get_buf_map()
138 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map()
156 error = xfs_buf_get_map(target, map, nmaps, flags, &bp); in xfs_trans_get_buf_map()
214 struct xfs_buftarg *target, in xfs_trans_read_buf_map() argument
235 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map()
289 error = xfs_buf_read_map(target, map, nmaps, flags, &bp, ops, in xfs_trans_read_buf_map()
Dxfs_trans_ail.c425 xfs_lsn_t target; in xfsaild_push() local
453 target = ailp->ail_target; in xfsaild_push()
454 ailp->ail_target_prev = target; in xfsaild_push()
464 while ((XFS_LSN_CMP(lip->li_lsn, target) <= 0)) { in xfsaild_push()
549 if (!count || XFS_LSN_CMP(lsn, target) >= 0) { in xfsaild_push()
/fs/
Ddcache.c2787 static void swap_names(struct dentry *dentry, struct dentry *target) in swap_names() argument
2789 if (unlikely(dname_external(target))) { in swap_names()
2794 swap(target->d_name.name, dentry->d_name.name); in swap_names()
2800 memcpy(target->d_iname, dentry->d_name.name, in swap_names()
2802 dentry->d_name.name = target->d_name.name; in swap_names()
2803 target->d_name.name = target->d_iname; in swap_names()
2811 memcpy(dentry->d_iname, target->d_name.name, in swap_names()
2812 target->d_name.len + 1); in swap_names()
2813 target->d_name.name = dentry->d_name.name; in swap_names()
2823 ((long *) &target->d_iname)[i]); in swap_names()
[all …]
Dfsopen.c161 struct path target; in SYSCALL_DEFINE3() local
181 ret = user_path_at(dfd, path, lookup_flags, &target); in SYSCALL_DEFINE3()
186 if (target.mnt->mnt_root != target.dentry) in SYSCALL_DEFINE3()
189 fc = fs_context_for_reconfigure(target.dentry, 0, 0); in SYSCALL_DEFINE3()
201 path_put(&target); in SYSCALL_DEFINE3()
207 path_put(&target); in SYSCALL_DEFINE3()
Dnamei.c4260 struct inode *target = dentry->d_inode; in vfs_unlink() local
4269 inode_lock(target); in vfs_unlink()
4270 if (IS_SWAPFILE(target)) in vfs_unlink()
4277 error = try_break_deleg(target, delegated_inode); in vfs_unlink()
4288 inode_unlock(target); in vfs_unlink()
4294 fsnotify_link_count(target); in vfs_unlink()
4721 struct inode *target = new_dentry->d_inode; in vfs_rename() local
4727 if (source == target) in vfs_rename()
4734 if (!target) { in vfs_rename()
4764 error = inode_permission(rd->new_mnt_userns, target, in vfs_rename()
[all …]
/fs/jffs2/
Ddir.c78 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target, in jffs2_lookup() argument
89 if (target->d_name.len > JFFS2_MAX_NAME_LEN) in jffs2_lookup()
95 nhash = full_name_hash(NULL, target->d_name.name, target->d_name.len); in jffs2_lookup()
103 strlen(fd_list->name) == target->d_name.len && in jffs2_lookup()
104 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup()
117 return d_splice_alias(inode, target); in jffs2_lookup()
283 struct dentry *dentry, const char *target) in jffs2_symlink() argument
294 int ret, targetlen = strlen(target); in jffs2_symlink()
338 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink()
341 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); in jffs2_symlink()
[all …]
/fs/configfs/
Dsymlink.c57 struct config_item *target, char *path) in configfs_get_target_path() argument
63 size = item_path_length(target) + depth * 3 - 1; in configfs_get_target_path()
72 fill_item_path(target, path, size); in configfs_get_target_path()
118 struct config_item **target, struct super_block *sb) in get_target() argument
125 *target = configfs_get_config_item(path->dentry); in get_target()
126 if (!*target) { in get_target()
Ddir.c362 int configfs_create_link(struct configfs_dirent *target, struct dentry *parent, in configfs_create_link() argument
370 err = configfs_make_dirent(p, dentry, target, mode, CONFIGFS_ITEM_LINK, in configfs_create_link()
1035 struct config_item *target) in configfs_depend_prep() argument
1043 if (sd->s_element == target) /* Boo-yah */ in configfs_depend_prep()
1051 target); in configfs_depend_prep()
1065 struct config_item *target) in configfs_do_depend_item() argument
1072 ret = configfs_depend_prep(subsys_dentry, target); in configfs_do_depend_item()
1080 p = target->ci_dentry->d_fsdata; in configfs_do_depend_item()
1109 struct config_item *target) in configfs_depend_item() argument
1138 ret = configfs_do_depend_item(subsys_sd->s_dentry, target); in configfs_depend_item()
[all …]
/fs/squashfs/
Dxattr.c116 char *target = kmalloc(name_len, GFP_KERNEL); in squashfs_xattr_get() local
118 if (target == NULL) in squashfs_xattr_get()
137 err = squashfs_read_metadata(sb, target, &start, in squashfs_xattr_get()
146 strncmp(target, name, name_size) == 0) { in squashfs_xattr_get()
198 kfree(target); in squashfs_xattr_get()
/fs/btrfs/
Dblock-rsv.c281 struct btrfs_block_rsv *target = NULL; in btrfs_block_rsv_release() local
288 target = global_rsv; in btrfs_block_rsv_release()
290 target = delayed_rsv; in btrfs_block_rsv_release()
292 if (target && block_rsv->space_info != target->space_info) in btrfs_block_rsv_release()
293 target = NULL; in btrfs_block_rsv_release()
295 return block_rsv_release_bytes(fs_info, block_rsv, target, num_bytes, in btrfs_block_rsv_release()
/fs/crypto/
Dhooks.c193 int fscrypt_prepare_symlink(struct inode *dir, const char *target, in fscrypt_prepare_symlink() argument
207 disk_link->name = (unsigned char *)target; in fscrypt_prepare_symlink()
238 int __fscrypt_encrypt_symlink(struct inode *inode, const char *target, in __fscrypt_encrypt_symlink() argument
242 struct qstr iname = QSTR_INIT(target, len); in __fscrypt_encrypt_symlink()
279 inode->i_link = kmemdup(target, len + 1, GFP_NOFS); in __fscrypt_encrypt_symlink()
/fs/nfs/
Dclient.c877 void nfs_server_copy_userdata(struct nfs_server *target, struct nfs_server *source) in nfs_server_copy_userdata() argument
879 target->flags = source->flags; in nfs_server_copy_userdata()
880 target->rsize = source->rsize; in nfs_server_copy_userdata()
881 target->wsize = source->wsize; in nfs_server_copy_userdata()
882 target->acregmin = source->acregmin; in nfs_server_copy_userdata()
883 target->acregmax = source->acregmax; in nfs_server_copy_userdata()
884 target->acdirmin = source->acdirmin; in nfs_server_copy_userdata()
885 target->acdirmax = source->acdirmax; in nfs_server_copy_userdata()
886 target->caps = source->caps; in nfs_server_copy_userdata()
887 target->options = source->options; in nfs_server_copy_userdata()
[all …]
/fs/ntfs3/lib/
Dlzx_decompress.c146 static void undo_e8_translation(void *target, s32 input_pos) in undo_e8_translation() argument
150 abs_offset = get_unaligned_le32(target); in undo_e8_translation()
155 put_unaligned_le32(rel_offset, target); in undo_e8_translation()
161 put_unaligned_le32(rel_offset, target); in undo_e8_translation()
/fs/gfs2/
Dglock.c60 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
706 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target) in do_xmote() argument
715 if (target != LM_ST_UNLOCKED && glock_blocked_by_withdraw(gl) && in do_xmote()
720 GLOCK_BUG_ON(gl, gl->gl_state == target); in do_xmote()
722 if ((target == LM_ST_UNLOCKED || target == LM_ST_DEFERRED) && in do_xmote()
734 gl->gl_req = target; in do_xmote()
769 glops->go_inval(gl, target == LM_ST_DEFERRED ? 0 : DIO_METADATA); in do_xmote()
799 (target != LM_ST_UNLOCKED || in do_xmote()
811 ret = sdp->sd_lockstruct.ls_ops->lm_lock(gl, target, lck_flags); in do_xmote()
813 target == LM_ST_UNLOCKED && in do_xmote()
[all …]

1234