Home
last modified time | relevance | path

Searched refs:link (Results 1 – 25 of 80) sorted by relevance

1234

/fs/affs/
Dsymlink.c18 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()
/fs/afs/
Dflock.c87 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_grant_locks()
90 fl_u.afs.link) { in afs_grant_locks()
93 list_move_tail(&p->fl_u.afs.link, in afs_grant_locks()
145 struct file_lock, fl_u.afs.link); in afs_lock_work()
179 struct file_lock, fl_u.afs.link); in afs_lock_work()
203 struct file_lock, fl_u.afs.link) == fl) { in afs_lock_work()
208 list_del_init(&fl->fl_u.afs.link); in afs_lock_work()
272 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk()
314 list_add_tail(&fl->fl_u.afs.link, &vnode->pending_locks); in afs_do_setlk()
329 &fl->fl_u.afs.link); in afs_do_setlk()
[all …]
Dcell.c64 INIT_LIST_HEAD(&cell->link); in afs_cell_alloc()
160 list_for_each_entry(cell, &afs_cells, link) { in afs_cell_create()
187 list_add_tail(&cell->link, &afs_cells); in afs_cell_create()
280 list_for_each_entry(cell, &afs_cells, link) { in afs_cell_lookup()
330 if (cell && !list_empty(&cell->link))
382 ASSERT(list_empty(&cell->link)); in afs_cell_destroy()
443 struct afs_cell, link); in afs_cell_purge()
444 list_del_init(&cell->link); in afs_cell_purge()
Dserver.c81 INIT_LIST_HEAD(&server->link); in afs_alloc_server()
114 list_for_each_entry(server, &cell->servers, link) { in afs_lookup_server()
129 list_for_each_entry(server, &cell->servers, link) { in afs_lookup_server()
140 list_add_tail(&server->link, &cell->servers); in afs_lookup_server()
303 list_del_init(&server->link); in afs_reap_server()
Dwrite.c40 list_del_init(&wb->link); in afs_unlink_writeback()
45 struct afs_writeback, link); in afs_unlink_writeback()
147 INIT_LIST_HEAD(&candidate->link); in afs_write_begin()
188 list_for_each_entry(wb, &vnode->writebacks, link) { in afs_write_begin()
195 list_add_tail(&candidate->link, &vnode->writebacks); in afs_write_begin()
742 list_for_each_entry(xwb, &vnode->writebacks, link) { in afs_fsync()
746 list_add_tail(&wb->link, &vnode->writebacks); in afs_fsync()
760 vnode->writebacks.next == &wb->link); in afs_fsync()
/fs/ocfs2/
Dsymlink.c63 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/
Dsymlink.c17 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/
Dcache.c34 list_for_each_entry(tag, &fscache_cache_tag_list, link) { in __fscache_lookup_cache_tag()
56 list_for_each_entry(tag, &fscache_cache_tag_list, link) { in __fscache_lookup_cache_tag()
65 list_add_tail(&xtag->link, &fscache_cache_tag_list); in __fscache_lookup_cache_tag()
79 list_del_init(&tag->link); in __fscache_release_cache_tag()
165 struct fscache_cache, link); in fscache_select_cache_for_object()
198 INIT_LIST_HEAD(&cache->link); in fscache_init_cache()
261 list_add(&cache->link, &fscache_cache_list); in fscache_add_cache()
379 list_del_init(&cache->link); in fscache_withdraw_cache()
Dnetfs.c30 INIT_LIST_HEAD(&netfs->link); in __fscache_register_netfs()
58 list_for_each_entry(ptr, &fscache_netfs_list, link) { in __fscache_register_netfs()
67 list_add(&netfs->link, &fscache_netfs_list); in __fscache_register_netfs()
93 list_del(&netfs->link); in __fscache_unregister_netfs()
/fs/sysfs/
Dgroup.c382 struct kernfs_node *link; in __compat_only_sysfs_link_entry_to_kobj() local
403 link = kernfs_create_link(kobj->sd, target_name, entry); in __compat_only_sysfs_link_entry_to_kobj()
404 if (IS_ERR(link) && PTR_ERR(link) == -EEXIST) in __compat_only_sysfs_link_entry_to_kobj()
409 return IS_ERR(link) ? PTR_ERR(link) : 0; in __compat_only_sysfs_link_entry_to_kobj()
/fs/hostfs/
Dhostfs_kern.c140 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()
882 .link = hostfs_link,
897 char *link; in hostfs_get_link() local
900 link = kmalloc(PATH_MAX, GFP_KERNEL); in hostfs_get_link()
901 if (link) { in hostfs_get_link()
[all …]
/fs/ncpfs/
Dsymlink.c47 char *link, *rawlink; in ncp_symlink_readpage() local
72 link = rawlink + 8; in ncp_symlink_readpage()
75 link = rawlink; in ncp_symlink_readpage()
79 error = ncp_vol2io(NCP_SERVER(inode), buf, &len, link, length, 0); in ncp_symlink_readpage()
/fs/jffs2/
Dreadinode.c339 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 …]
Dnodelist.c125 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/proc/
Dproc_sysctl.c1138 struct ctl_table *link_table, *entry, *link; in new_links() local
1164 for (link = link_table, entry = table; entry->procname; link++, entry++) { in new_links()
1167 link->procname = link_name; in new_links()
1168 link->mode = S_IFLNK|S_IRWXUGO; in new_links()
1169 link->data = link_root; in new_links()
1182 struct ctl_table *entry, *link; in get_links() local
1187 link = find_entry(&head, dir, procname, strlen(procname)); in get_links()
1188 if (!link) in get_links()
1190 if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) in get_links()
1192 if (S_ISLNK(link->mode) && (link->data == link_root)) in get_links()
[all …]
/fs/xfs/
Dxfs_symlink.h24 int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link);
25 int xfs_readlink(struct xfs_inode *ip, char *link);
Dxfs_symlink.c49 char *link) in xfs_readlink_bmap_ilocked() argument
110 memcpy(link + offset, cur_chunk, byte_cnt); in xfs_readlink_bmap_ilocked()
119 link[ip->i_d.di_size] = '\0'; in xfs_readlink_bmap_ilocked()
129 char *link) in xfs_readlink() argument
158 error = xfs_readlink_bmap_ilocked(ip, link); in xfs_readlink()
Dxfs_iops.c457 char *link; in xfs_vn_get_link() local
463 link = kmalloc(XFS_SYMLINK_MAXLEN+1, GFP_KERNEL); in xfs_vn_get_link()
464 if (!link) in xfs_vn_get_link()
467 error = xfs_readlink(XFS_I(d_inode(dentry)), link); in xfs_vn_get_link()
471 set_delayed_call(done, kfree_link, link); in xfs_vn_get_link()
472 return link; in xfs_vn_get_link()
475 kfree(link); in xfs_vn_get_link()
1125 .link = xfs_vn_link,
1150 .link = xfs_vn_link,
/fs/jfs/
Djfs_incore.h95 } link; member
107 #define i_inline u.link._inline
108 #define i_inline_ea u.link._inline_ea
/fs/
Dnamei.c533 struct path link; member
632 path_put(&nd->stack[i].link); in terminate_walk()
669 if (unlikely(!legitimize_path(nd, &last->link, last->seq))) { in legitimize_links()
917 path_put(&last->link); in put_link()
967 audit_log_link_denied("follow_link", &nd->stack[0].link); in may_follow_link()
1018 static int may_linkat(struct path *link) in may_linkat() argument
1025 inode = link->dentry->d_inode; in may_linkat()
1033 audit_log_link_denied("linkat", link); in may_linkat()
1081 struct dentry *dentry = last->link.dentry; in get_link()
1087 touch_atime(&last->link); in get_link()
[all …]
/fs/overlayfs/
Dcopy_up.c325 const char *link; member
403 .link = c->link in ovl_get_tmpfile()
624 ctx.link = vfs_get_link(ctx.lowerpath.dentry, &done); in ovl_copy_up_one()
625 if (IS_ERR(ctx.link)) in ovl_copy_up_one()
626 return PTR_ERR(ctx.link); in ovl_copy_up_one()
Ddir.c115 err = ovl_do_symlink(dir, newdentry, attr->link, debug); in ovl_create_real()
532 const char *link) in ovl_create_object() argument
538 .link = link, in ovl_create_object()
585 const char *link) in ovl_symlink() argument
587 return ovl_create_object(dentry, S_IFLNK, 0, link); in ovl_symlink()
1111 .link = ovl_link,
/fs/isofs/
Drock.c454 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/
Dinode.c600 char *link = kstrdup(target, GFP_KERNEL); in debugfs_create_symlink() local
601 if (!link) in debugfs_create_symlink()
606 kfree(link); in debugfs_create_symlink()
612 kfree(link); in debugfs_create_symlink()
617 inode->i_link = link; in debugfs_create_symlink()
/fs/fuse/
Ddir.c692 const char *link) in fuse_symlink() argument
695 unsigned len = strlen(link) + 1; in fuse_symlink()
703 args.in.args[1].value = link; in fuse_symlink()
1448 char *link; in fuse_get_link() local
1454 link = kmalloc(PAGE_SIZE, GFP_KERNEL); in fuse_get_link()
1455 if (!link) in fuse_get_link()
1463 args.out.args[0].value = link; in fuse_get_link()
1466 kfree(link); in fuse_get_link()
1467 link = ERR_PTR(ret); in fuse_get_link()
1469 link[ret] = '\0'; in fuse_get_link()
[all …]

1234