/fs/affs/ |
D | symlink.c | 18 char *link = page_address(page); in affs_symlink_readpage() local 40 link[i++] = c; in affs_symlink_readpage() 43 link[i++] = lf->symname[j++]; in affs_symlink_readpage() 45 link[i++] = '/'; in affs_symlink_readpage() 51 link[i++] = '.'; in affs_symlink_readpage() 52 link[i++] = '.'; in affs_symlink_readpage() 54 link[i++] = c; in affs_symlink_readpage() 58 link[i] = '\0'; in affs_symlink_readpage()
|
D | Changes | 60 - introduce affs_lock_{link|dir|ext}. 65 - disable link to directories until we can properly support them. 66 - locking fixes for link creation/removal. 177 the old link days ...
|
/fs/afs/ |
D | flock.c | 94 list_for_each_entry_safe(p, _p, &vnode->pending_locks, fl_u.afs.link) { in afs_grant_locks() 98 list_move_tail(&p->fl_u.afs.link, &vnode->granted_locks); in afs_grant_locks() 121 list_for_each_entry_safe(p, _p, &vnode->pending_locks, fl_u.afs.link) { in afs_next_locker() 125 list_del_init(&p->fl_u.afs.link); in afs_next_locker() 165 struct file_lock, fl_u.afs.link); in afs_kill_lockers_enoent() 166 list_del_init(&p->fl_u.afs.link); in afs_kill_lockers_enoent() 481 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk() 510 list_add_tail(&fl->fl_u.afs.link, &vnode->pending_locks); in afs_do_setlk() 524 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_do_setlk() 531 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_do_setlk() [all …]
|
/fs/ocfs2/ |
D | symlink.c | 63 const char *link; in ocfs2_fast_symlink_readpage() local 73 link = (char *) fe->id2.i_symlink; in ocfs2_fast_symlink_readpage() 75 len = strnlen(link, ocfs2_fast_symlink_chars(inode->i_sb)); in ocfs2_fast_symlink_readpage() 77 memcpy(kaddr, link, len + 1); in ocfs2_fast_symlink_readpage()
|
/fs/efs/ |
D | symlink.c | 17 char *link = page_address(page); in efs_symlink_readpage() local 32 memcpy(link, bh->b_data, (size > EFS_BLOCKSIZE) ? EFS_BLOCKSIZE : size); in efs_symlink_readpage() 38 memcpy(link + EFS_BLOCKSIZE, bh->b_data, size - EFS_BLOCKSIZE); in efs_symlink_readpage() 41 link[size] = '\0'; in efs_symlink_readpage()
|
/fs/fscache/ |
D | cache.c | 30 list_for_each_entry(tag, &fscache_cache_tag_list, link) { in __fscache_lookup_cache_tag() 52 list_for_each_entry(tag, &fscache_cache_tag_list, link) { in __fscache_lookup_cache_tag() 61 list_add_tail(&xtag->link, &fscache_cache_tag_list); in __fscache_lookup_cache_tag() 75 list_del_init(&tag->link); in __fscache_release_cache_tag() 161 struct fscache_cache, link); in fscache_select_cache_for_object() 194 INIT_LIST_HEAD(&cache->link); in fscache_init_cache() 257 list_add(&cache->link, &fscache_cache_list); in fscache_add_cache() 375 list_del_init(&cache->link); in fscache_withdraw_cache()
|
/fs/hostfs/ |
D | hostfs_kern.c | 140 static char *follow_link(char *link) in follow_link() argument 151 n = hostfs_do_readlink(link, name, PATH_MAX); in follow_link() 162 end = strrchr(link, '/'); in follow_link() 167 len = strlen(link) + strlen(name) + 1; in follow_link() 175 sprintf(resolved, "%s%s", link, name); in follow_link() 177 kfree(link); in follow_link() 864 .link = hostfs_link, 879 char *link; in hostfs_get_link() local 882 link = kmalloc(PATH_MAX, GFP_KERNEL); in hostfs_get_link() 883 if (link) { in hostfs_get_link() [all …]
|
/fs/jffs2/ |
D | readinode.c | 339 struct rb_node **link = &rii->tn_root.rb_node; in jffs2_add_tn_to_tree() local 342 while (*link) { in jffs2_add_tn_to_tree() 343 parent = *link; in jffs2_add_tn_to_tree() 346 link = &insert_point->rb.rb_right; in jffs2_add_tn_to_tree() 349 link = &insert_point->rb.rb_left; in jffs2_add_tn_to_tree() 351 link = &insert_point->rb.rb_right; in jffs2_add_tn_to_tree() 353 rb_link_node(&tn->rb, &insert_point->rb, link); in jffs2_add_tn_to_tree() 405 struct rb_node **link; in eat_last() local 411 link = &root->rb_node; in eat_last() 413 link = &parent->rb_left; in eat_last() [all …]
|
D | nodelist.c | 125 struct rb_node **link = &parent; in jffs2_fragtree_insert() local 129 while (*link) { in jffs2_fragtree_insert() 130 parent = *link; in jffs2_fragtree_insert() 134 link = &base->rb.rb_right; in jffs2_fragtree_insert() 136 link = &base->rb.rb_left; in jffs2_fragtree_insert() 143 rb_link_node(&newfrag->rb, &base->rb, link); in jffs2_fragtree_insert()
|
/fs/xfs/ |
D | xfs_iops.c | 444 char *link; in xfs_vn_get_link() local 450 link = kmalloc(XFS_SYMLINK_MAXLEN+1, GFP_KERNEL); in xfs_vn_get_link() 451 if (!link) in xfs_vn_get_link() 454 error = xfs_readlink(XFS_I(d_inode(dentry)), link); in xfs_vn_get_link() 458 set_delayed_call(done, kfree_link, link); in xfs_vn_get_link() 459 return link; in xfs_vn_get_link() 462 kfree(link); in xfs_vn_get_link() 473 char *link; in xfs_vn_get_link_inline() local 481 link = XFS_I(inode)->i_df.if_u1.if_data; in xfs_vn_get_link_inline() 482 if (!link) in xfs_vn_get_link_inline() [all …]
|
D | xfs_symlink.h | 12 int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link); 13 int xfs_readlink(struct xfs_inode *ip, char *link);
|
D | xfs_symlink.c | 28 char *link) in xfs_readlink_bmap_ilocked() argument 89 memcpy(link + offset, cur_chunk, byte_cnt); in xfs_readlink_bmap_ilocked() 98 link[ip->i_d.di_size] = '\0'; in xfs_readlink_bmap_ilocked() 108 char *link) in xfs_readlink() argument 137 error = xfs_readlink_bmap_ilocked(ip, link); in xfs_readlink()
|
/fs/proc/ |
D | proc_sysctl.c | 1165 struct ctl_table *link_table, *entry, *link; in new_links() local 1191 for (link = link_table, entry = table; entry->procname; link++, entry++) { in new_links() 1194 link->procname = link_name; in new_links() 1195 link->mode = S_IFLNK|S_IRWXUGO; in new_links() 1196 link->data = link_root; in new_links() 1209 struct ctl_table *entry, *link; in get_links() local 1214 link = find_entry(&head, dir, procname, strlen(procname)); in get_links() 1215 if (!link) in get_links() 1217 if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) in get_links() 1219 if (S_ISLNK(link->mode) && (link->data == link_root)) in get_links() [all …]
|
/fs/sysfs/ |
D | group.c | 430 struct kernfs_node *link; in __compat_only_sysfs_link_entry_to_kobj() local 451 link = kernfs_create_link(kobj->sd, target_name, entry); in __compat_only_sysfs_link_entry_to_kobj() 452 if (IS_ERR(link) && PTR_ERR(link) == -EEXIST) in __compat_only_sysfs_link_entry_to_kobj() 457 return PTR_ERR_OR_ZERO(link); in __compat_only_sysfs_link_entry_to_kobj()
|
/fs/jfs/ |
D | jfs_incore.h | 85 } link; member 97 #define i_inline u.link._inline 98 #define i_inline_ea u.link._inline_ea
|
/fs/ |
D | io_uring.c | 706 struct io_kiocb *link; in io_fail_links() local 709 link = list_first_entry(&req->link_list, struct io_kiocb, list); in io_fail_links() 710 list_del(&link->list); in io_fail_links() 712 io_cqring_add_event(req->ctx, link->user_data, -ECANCELED); in io_fail_links() 713 __io_free_req(link); in io_fail_links() 2486 struct io_submit_state *state, struct io_kiocb **link) in io_submit_sqe() argument 2522 if (*link) { in io_submit_sqe() 2523 struct io_kiocb *prev = *link; in io_submit_sqe() 2539 *link = req; in io_submit_sqe() 2630 struct io_kiocb *link = NULL; in io_submit_sqes() local [all …]
|
D | namei.c | 512 struct path link; member 611 path_put(&nd->stack[i].link); in terminate_walk() 646 if (unlikely(!legitimize_path(nd, &last->link, last->seq))) { in legitimize_links() 971 path_put(&last->link); in put_link() 1021 audit_inode(nd->name, nd->stack[0].link.dentry, 0); in may_follow_link() 1073 static int may_linkat(struct path *link) in may_linkat() argument 1075 struct inode *inode = link->dentry->d_inode; in may_linkat() 1138 struct dentry *dentry = last->link.dentry; in get_link() 1144 touch_atime(&last->link); in get_link() 1146 } else if (atime_needs_update(&last->link, inode)) { in get_link() [all …]
|
/fs/isofs/ |
D | rock.c | 454 slp = &rr->u.SL.link; in parse_rock_ridge_inode_internal() 610 slp = &rr->u.SL.link; in get_symlink_chunk() 698 char *link = page_address(page); in rock_ridge_symlink_readpage() local 701 char *rpnt = link; in rock_ridge_symlink_readpage() 761 link + (PAGE_SIZE - 1)); in rock_ridge_symlink_readpage() 780 if (rpnt == link) in rock_ridge_symlink_readpage()
|
/fs/debugfs/ |
D | inode.c | 645 char *link = kstrdup(target, GFP_KERNEL); in debugfs_create_symlink() local 646 if (!link) in debugfs_create_symlink() 651 kfree(link); in debugfs_create_symlink() 659 kfree(link); in debugfs_create_symlink() 664 inode->i_link = link; in debugfs_create_symlink()
|
/fs/overlayfs/ |
D | copy_up.c | 391 const char *link; member 538 .link = c->link in ovl_copy_up_workdir() 827 ctx.link = vfs_get_link(ctx.lowerpath.dentry, &done); in ovl_copy_up_one() 828 if (IS_ERR(ctx.link)) in ovl_copy_up_one() 829 return PTR_ERR(ctx.link); in ovl_copy_up_one()
|
D | dir.c | 181 err = ovl_do_symlink(dir, newdentry, attr->link); in ovl_create_real() 590 const char *link) in ovl_create_object() argument 596 .link = link, in ovl_create_object() 649 const char *link) in ovl_symlink() argument 651 return ovl_create_object(dentry, S_IFLNK, 0, link); in ovl_symlink() 1245 .link = ovl_link,
|
/fs/nfsd/ |
D | xdr4.h | 114 } link; /* NF4LNK */ member 127 #define cr_datalen u.link.datalen 128 #define cr_data u.link.data 129 #define cr_first u.link.first 583 struct nfsd4_link link; member
|
/fs/ecryptfs/ |
D | inode.c | 643 const char *link; in ecryptfs_readlink_lower() local 647 link = vfs_get_link(lower_dentry, &done); in ecryptfs_readlink_lower() 648 if (IS_ERR(link)) in ecryptfs_readlink_lower() 649 return ERR_CAST(link); in ecryptfs_readlink_lower() 652 link, strlen(link)); in ecryptfs_readlink_lower() 1108 .link = ecryptfs_link,
|
/fs/f2fs/ |
D | namei.c | 572 const char *link = page_get_link(dentry, inode, done); in f2fs_get_link() local 573 if (!IS_ERR(link) && !*link) { in f2fs_get_link() 577 link = ERR_PTR(-ENOENT); in f2fs_get_link() 579 return link; in f2fs_get_link() 1264 .link = f2fs_link,
|
/fs/fuse/ |
D | file.c | 2916 struct rb_node **link = &fc->polled_files.rb_node; in fuse_find_polled_node() local 2919 while (*link) { in fuse_find_polled_node() 2922 last = *link; in fuse_find_polled_node() 2926 link = &last->rb_left; in fuse_find_polled_node() 2928 link = &last->rb_right; in fuse_find_polled_node() 2930 return link; in fuse_find_polled_node() 2935 return link; in fuse_find_polled_node() 2949 struct rb_node **link, *uninitialized_var(parent); in fuse_register_polled_file() local 2951 link = fuse_find_polled_node(fc, ff->kh, &parent); in fuse_register_polled_file() 2952 BUG_ON(*link); in fuse_register_polled_file() [all …]
|