Home
last modified time | relevance | path

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

1234

/fs/affs/
Dsymlink.c17 char *link = kmap(page); in affs_symlink_readpage() local
41 link[i++] = c; in affs_symlink_readpage()
44 link[i++] = lf->symname[j++]; in affs_symlink_readpage()
46 link[i++] = '/'; in affs_symlink_readpage()
52 link[i++] = '.'; in affs_symlink_readpage()
53 link[i++] = '.'; in affs_symlink_readpage()
55 link[i++] = c; in affs_symlink_readpage()
59 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()
271 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk()
313 list_add_tail(&fl->fl_u.afs.link, &vnode->pending_locks); in afs_do_setlk()
328 &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()
298 list_del_init(&server->link); in afs_reap_server()
Dwrite.c41 list_del_init(&wb->link); in afs_unlink_writeback()
46 struct afs_writeback, link); in afs_unlink_writeback()
142 INIT_LIST_HEAD(&candidate->link); in afs_write_begin()
180 list_for_each_entry(wb, &vnode->writebacks, link) { in afs_write_begin()
187 list_add_tail(&candidate->link, &vnode->writebacks); in afs_write_begin()
719 list_for_each_entry(xwb, &vnode->writebacks, link) { in afs_fsync()
723 list_add_tail(&wb->link, &vnode->writebacks); in afs_fsync()
737 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.c16 char *link = kmap(page); in efs_symlink_readpage() local
31 memcpy(link, bh->b_data, (size > EFS_BLOCKSIZE) ? EFS_BLOCKSIZE : size); in efs_symlink_readpage()
37 memcpy(link + EFS_BLOCKSIZE, bh->b_data, size - EFS_BLOCKSIZE); in efs_symlink_readpage()
40 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()
259 list_add(&cache->link, &fscache_cache_list); in fscache_add_cache()
378 list_del_init(&cache->link); in fscache_withdraw_cache()
Dnetfs.c29 INIT_LIST_HEAD(&netfs->link); in __fscache_register_netfs()
58 list_for_each_entry(ptr, &fscache_netfs_list, link) { in __fscache_register_netfs()
63 list_add(&netfs->link, &fscache_netfs_list); in __fscache_register_netfs()
93 list_del(&netfs->link); in __fscache_unregister_netfs()
/fs/befs/
Dlinuxvfs.c477 char *link; in befs_follow_link() local
486 link = ERR_PTR(-EIO); in befs_follow_link()
490 link = kmalloc(len, GFP_NOFS); in befs_follow_link()
491 if (!link) { in befs_follow_link()
492 link = ERR_PTR(-ENOMEM); in befs_follow_link()
493 } else if (befs_read_lsymlink(sb, data, link, len) != len) { in befs_follow_link()
494 kfree(link); in befs_follow_link()
496 link = ERR_PTR(-EIO); in befs_follow_link()
498 link[len - 1] = '\0'; in befs_follow_link()
502 link = befs_ino->i_data.symlink; in befs_follow_link()
[all …]
/fs/ncpfs/
Dsymlink.c46 char *link, *rawlink; in ncp_symlink_readpage() local
71 link = rawlink + 8; in ncp_symlink_readpage()
74 link = rawlink; in ncp_symlink_readpage()
78 error = ncp_vol2io(NCP_SERVER(inode), buf, &len, link, length, 0); in ncp_symlink_readpage()
/fs/hostfs/
Dhostfs_kern.c142 static char *follow_link(char *link) in follow_link() argument
154 n = hostfs_do_readlink(link, name, len); in follow_link()
166 end = strrchr(link, '/'); in follow_link()
171 len = strlen(link) + strlen(name) + 1; in follow_link()
179 sprintf(resolved, "%s%s", link, name); in follow_link()
181 kfree(link); in follow_link()
864 .link = hostfs_link,
877 char *link = __getname(); in hostfs_follow_link() local
878 if (link) { in hostfs_follow_link()
882 err = hostfs_do_readlink(path, link, PATH_MAX); in hostfs_follow_link()
[all …]
/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/
Dnamei.c656 static __always_inline int __vfs_follow_link(struct nameidata *nd, const char *link) in __vfs_follow_link() argument
660 if (IS_ERR(link)) in __vfs_follow_link()
663 if (*link == '/') { in __vfs_follow_link()
672 ret = link_path_walk(link, nd); in __vfs_follow_link()
676 return PTR_ERR(link); in __vfs_follow_link()
711 static inline void put_link(struct nameidata *nd, struct path *link, void *cookie) in put_link() argument
713 struct inode *inode = link->dentry->d_inode; in put_link()
715 inode->i_op->put_link(link->dentry, nd, cookie); in put_link()
716 path_put(link); in put_link()
738 static inline int may_follow_link(struct path *link, struct nameidata *nd) in may_follow_link() argument
[all …]
/fs/proc/
Dproc_sysctl.c1039 struct ctl_table *link_table, *entry, *link; in new_links() local
1065 for (link = link_table, entry = table; entry->procname; link++, entry++) { in new_links()
1068 link->procname = link_name; in new_links()
1069 link->mode = S_IFLNK|S_IRWXUGO; in new_links()
1070 link->data = link_root; in new_links()
1083 struct ctl_table *entry, *link; in get_links() local
1088 link = find_entry(&head, dir, procname, strlen(procname)); in get_links()
1089 if (!link) in get_links()
1091 if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) in get_links()
1093 if (S_ISLNK(link->mode) && (link->data == link_root)) in get_links()
[all …]
/fs/xfs/
Dxfs_symlink.c220 char *link) in xfs_readlink_bmap() argument
275 memcpy(link + offset, bp->b_addr, byte_cnt); in xfs_readlink_bmap()
284 link[ip->i_d.di_size] = '\0'; in xfs_readlink_bmap()
294 char *link) in xfs_readlink() argument
322 memcpy(link, ip->i_df.if_u1.if_data, pathlen); in xfs_readlink()
323 link[pathlen] = '\0'; in xfs_readlink()
325 error = xfs_readlink_bmap(ip, link); in xfs_readlink()
Dxfs_ioctl.c287 const char *link) in do_readlink() argument
291 len = PTR_ERR(link); in do_readlink()
292 if (IS_ERR(link)) in do_readlink()
295 len = strlen(link); in do_readlink()
298 if (copy_to_user(buffer, link, len)) in do_readlink()
312 void *link; in xfs_readlink_by_handle() local
333 link = kmalloc(MAXPATHLEN+1, GFP_KERNEL); in xfs_readlink_by_handle()
334 if (!link) { in xfs_readlink_by_handle()
339 error = -xfs_readlink(XFS_I(dentry->d_inode), link); in xfs_readlink_by_handle()
342 error = do_readlink(hreq->ohandle, olen, link); in xfs_readlink_by_handle()
[all …]
Dxfs_iops.c371 char *link; in xfs_vn_follow_link() local
374 link = kmalloc(MAXPATHLEN+1, GFP_KERNEL); in xfs_vn_follow_link()
375 if (!link) in xfs_vn_follow_link()
378 error = -xfs_readlink(XFS_I(dentry->d_inode), link); in xfs_vn_follow_link()
382 nd_set_link(nd, link); in xfs_vn_follow_link()
386 kfree(link); in xfs_vn_follow_link()
1062 .link = xfs_vn_link,
1088 .link = xfs_vn_link,
/fs/jfs/
Djfs_incore.h95 } link; member
104 #define i_inline u.link._inline
105 #define i_inline_ea u.link._inline_ea
/fs/9p/
Dvfs_inode_dotl.c935 char *link = __getname(); in v9fs_vfs_follow_link_dotl() local
940 if (!link) { in v9fs_vfs_follow_link_dotl()
941 link = ERR_PTR(-ENOMEM); in v9fs_vfs_follow_link_dotl()
946 __putname(link); in v9fs_vfs_follow_link_dotl()
947 link = ERR_CAST(fid); in v9fs_vfs_follow_link_dotl()
952 strcpy(link, target); in v9fs_vfs_follow_link_dotl()
956 __putname(link); in v9fs_vfs_follow_link_dotl()
957 link = ERR_PTR(retval); in v9fs_vfs_follow_link_dotl()
959 nd_set_link(nd, link); in v9fs_vfs_follow_link_dotl()
998 .link = v9fs_vfs_link_dotl,
Dvfs_inode.c1286 char *link = __getname(); in v9fs_vfs_follow_link() local
1290 if (!link) in v9fs_vfs_follow_link()
1291 link = ERR_PTR(-ENOMEM); in v9fs_vfs_follow_link()
1293 len = v9fs_readlink(dentry, link, PATH_MAX); in v9fs_vfs_follow_link()
1296 __putname(link); in v9fs_vfs_follow_link()
1297 link = ERR_PTR(len); in v9fs_vfs_follow_link()
1299 link[min(len, PATH_MAX-1)] = 0; in v9fs_vfs_follow_link()
1301 nd_set_link(nd, link); in v9fs_vfs_follow_link()
1504 .link = v9fs_vfs_link,
/fs/isofs/
Drock.c433 slp = &rr->u.SL.link; in parse_rock_ridge_inode_internal()
579 slp = &rr->u.SL.link; in get_symlink_chunk()
664 char *link = kmap(page); in rock_ridge_symlink_readpage() local
667 char *rpnt = link; in rock_ridge_symlink_readpage()
727 link + (PAGE_SIZE - 1)); in rock_ridge_symlink_readpage()
746 if (rpnt == link) in rock_ridge_symlink_readpage()
/fs/debugfs/
Dinode.c451 char *link; in debugfs_create_symlink() local
453 link = kstrdup(target, GFP_KERNEL); in debugfs_create_symlink()
454 if (!link) in debugfs_create_symlink()
457 result = __create_file(name, S_IFLNK | S_IRWXUGO, parent, link, NULL); in debugfs_create_symlink()
459 kfree(link); in debugfs_create_symlink()
/fs/fuse/
Ddir.c722 const char *link) in fuse_symlink() argument
725 unsigned len = strlen(link) + 1; in fuse_symlink()
735 req->in.args[1].value = link; in fuse_symlink()
1435 char *link; in read_link() local
1440 link = (char *) __get_free_page(GFP_KERNEL); in read_link()
1441 if (!link) { in read_link()
1442 link = ERR_PTR(-ENOMEM); in read_link()
1450 req->out.args[0].value = link; in read_link()
1453 free_page((unsigned long) link); in read_link()
1454 link = ERR_PTR(req->out.h.error); in read_link()
[all …]

1234