/fs/ocfs2/ |
D | symlink.c | 82 char *link = NULL; in ocfs2_fast_symlink_getlink() local 90 link = ERR_PTR(status); in ocfs2_fast_symlink_getlink() 95 link = (char *) fe->id2.i_symlink; in ocfs2_fast_symlink_getlink() 99 return link; in ocfs2_fast_symlink_getlink() 107 char *link; in ocfs2_readlink() local 113 link = ocfs2_fast_symlink_getlink(inode, &bh); in ocfs2_readlink() 114 if (IS_ERR(link)) { in ocfs2_readlink() 115 ret = PTR_ERR(link); in ocfs2_readlink() 123 ret = vfs_readlink(dentry, buffer, buflen, link); in ocfs2_readlink() 135 char *link; in ocfs2_follow_link() local [all …]
|
/fs/smbfs/ |
D | symlink.c | 37 char *link = __getname(); in smb_follow_link() local 40 if (!link) { in smb_follow_link() 41 link = ERR_PTR(-ENOMEM); in smb_follow_link() 44 dentry, link, PATH_MAX - 1); in smb_follow_link() 46 __putname(link); in smb_follow_link() 47 link = ERR_PTR(len); in smb_follow_link() 49 link[len] = 0; in smb_follow_link() 52 nd_set_link(nd, link); in smb_follow_link()
|
/fs/affs/ |
D | symlink.c | 17 char *link = kmap(page); in affs_symlink_readpage() local 39 link[i++] = c; in affs_symlink_readpage() 41 link[i++] = lf->symname[j++]; in affs_symlink_readpage() 43 link[i++] = '/'; in affs_symlink_readpage() 49 link[i++] = '.'; in affs_symlink_readpage() 50 link[i++] = '.'; in affs_symlink_readpage() 52 link[i++] = c; in affs_symlink_readpage() 56 link[i] = '\0'; in affs_symlink_readpage()
|
/fs/afs/ |
D | flock.c | 88 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_grant_locks() 91 fl_u.afs.link) { in afs_grant_locks() 94 list_move_tail(&p->fl_u.afs.link, in afs_grant_locks() 146 struct file_lock, fl_u.afs.link); in afs_lock_work() 180 struct file_lock, fl_u.afs.link); in afs_lock_work() 204 struct file_lock, fl_u.afs.link) == fl) { in afs_lock_work() 209 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 …]
|
D | cell.c | 60 INIT_LIST_HEAD(&cell->link); in afs_cell_alloc() 132 list_for_each_entry(cell, &afs_cells, link) { in afs_cell_create() 160 list_add_tail(&cell->link, &afs_cells); in afs_cell_create() 244 list_for_each_entry(cell, &afs_cells, link) { in afs_cell_lookup() 283 if (cell && !list_empty(&cell->link)) 335 ASSERT(list_empty(&cell->link)); in afs_cell_destroy() 397 struct afs_cell, link); in afs_cell_purge() 398 list_del_init(&cell->link); in afs_cell_purge()
|
D | server.c | 81 INIT_LIST_HEAD(&server->link); in afs_alloc_server() 113 list_for_each_entry(server, &cell->servers, link) { in afs_lookup_server() 128 list_for_each_entry(server, &cell->servers, link) { in afs_lookup_server() 139 list_add_tail(&server->link, &cell->servers); in afs_lookup_server() 301 list_del_init(&server->link); in afs_reap_server()
|
D | write.c | 40 list_del_init(&wb->link); in afs_unlink_writeback() 45 struct afs_writeback, link); in afs_unlink_writeback() 181 list_for_each_entry(wb, &vnode->writebacks, link) { in afs_write_begin() 188 list_add_tail(&candidate->link, &vnode->writebacks); in afs_write_begin() 760 list_for_each_entry(xwb, &vnode->writebacks, link) { in afs_fsync() 764 list_add_tail(&wb->link, &vnode->writebacks); in afs_fsync() 778 vnode->writebacks.next == &wb->link); in afs_fsync()
|
D | vlocation.c | 178 INIT_LIST_HEAD(&vl->link); in afs_vlocation_alloc() 393 list_for_each_entry(vl, &cell->vl_list, link) { in afs_vlocation_lookup() 410 list_add_tail(&vl->link, &cell->vl_list); in afs_vlocation_lookup() 576 list_del_init(&vl->link); in afs_vlocation_reaper()
|
D | internal.h | 141 struct list_head link; /* link in vnode->writebacks */ member 192 struct list_head link; /* main cell list link */ member 248 struct list_head link; /* link in cell volume location list */ member 274 struct list_head link; /* link in cell's server list */ member
|
/fs/efs/ |
D | symlink.c | 17 char *link = kmap(page); in efs_symlink_readpage() local 33 memcpy(link, bh->b_data, (size > EFS_BLOCKSIZE) ? EFS_BLOCKSIZE : size); in efs_symlink_readpage() 39 memcpy(link + EFS_BLOCKSIZE, bh->b_data, size - EFS_BLOCKSIZE); in efs_symlink_readpage() 42 link[size] = '\0'; in efs_symlink_readpage()
|
/fs/befs/ |
D | linuxvfs.c | 465 char *link; in befs_follow_link() local 474 link = kmalloc(len, GFP_NOFS); in befs_follow_link() 475 if (!link) { in befs_follow_link() 476 link = ERR_PTR(-ENOMEM); in befs_follow_link() 477 } else if (befs_read_lsymlink(sb, data, link, len) != len) { in befs_follow_link() 478 kfree(link); in befs_follow_link() 480 link = ERR_PTR(-EIO); in befs_follow_link() 482 link[len - 1] = '\0'; in befs_follow_link() 485 link = befs_ino->i_data.symlink; in befs_follow_link() 488 nd_set_link(nd, link); in befs_follow_link() [all …]
|
/fs/9p/ |
D | vfs_inode.c | 958 char *link = __getname(); in v9fs_vfs_readlink() local 960 if (unlikely(!link)) in v9fs_vfs_readlink() 969 retval = v9fs_readlink(dentry, link, buflen); in v9fs_vfs_readlink() 972 if ((ret = copy_to_user(buffer, link, retval)) != 0) { in v9fs_vfs_readlink() 979 __putname(link); in v9fs_vfs_readlink() 993 char *link = __getname(); in v9fs_vfs_follow_link() local 997 if (!link) in v9fs_vfs_follow_link() 998 link = ERR_PTR(-ENOMEM); in v9fs_vfs_follow_link() 1000 len = v9fs_readlink(dentry, link, PATH_MAX); in v9fs_vfs_follow_link() 1003 __putname(link); in v9fs_vfs_follow_link() [all …]
|
/fs/ncpfs/ |
D | symlink.c | 47 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/ |
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() 402 struct rb_node **link; in eat_last() local 408 link = &root->rb_node; in eat_last() 410 link = &parent->rb_left; in eat_last() [all …]
|
D | nodelist.c | 124 struct rb_node **link = &parent; in jffs2_fragtree_insert() local 128 while (*link) { in jffs2_fragtree_insert() 129 parent = *link; in jffs2_fragtree_insert() 133 link = &base->rb.rb_right; in jffs2_fragtree_insert() 135 link = &base->rb.rb_left; in jffs2_fragtree_insert() 142 rb_link_node(&newfrag->rb, &base->rb, link); in jffs2_fragtree_insert()
|
/fs/debugfs/ |
D | inode.c | 294 char *link; in debugfs_create_symlink() local 296 link = kstrdup(target, GFP_KERNEL); in debugfs_create_symlink() 297 if (!link) in debugfs_create_symlink() 300 result = debugfs_create_file(name, S_IFLNK | S_IRWXUGO, parent, link, in debugfs_create_symlink() 303 kfree(link); in debugfs_create_symlink()
|
/fs/jfs/ |
D | jfs_incore.h | 98 } link; member 107 #define i_inline u.link._inline 108 #define i_inline_ea u.link._inline_ea
|
/fs/xfs/linux-2.6/ |
D | xfs_iops.c | 470 char *link; in xfs_vn_follow_link() local 473 link = kmalloc(MAXPATHLEN+1, GFP_KERNEL); in xfs_vn_follow_link() 474 if (!link) in xfs_vn_follow_link() 477 error = -xfs_readlink(XFS_I(dentry->d_inode), link); in xfs_vn_follow_link() 481 nd_set_link(nd, link); in xfs_vn_follow_link() 485 kfree(link); in xfs_vn_follow_link() 756 .link = xfs_vn_link, 781 .link = xfs_vn_link,
|
D | xfs_ioctl.c | 313 const char *link) in do_readlink() argument 317 len = PTR_ERR(link); in do_readlink() 318 if (IS_ERR(link)) in do_readlink() 321 len = strlen(link); in do_readlink() 324 if (copy_to_user(buffer, link, len)) in do_readlink() 338 void *link; in xfs_readlink_by_handle() local 359 link = kmalloc(MAXPATHLEN+1, GFP_KERNEL); in xfs_readlink_by_handle() 360 if (!link) { in xfs_readlink_by_handle() 365 error = -xfs_readlink(XFS_I(dentry->d_inode), link); in xfs_readlink_by_handle() 368 error = do_readlink(hreq->ohandle, olen, link); in xfs_readlink_by_handle() [all …]
|
/fs/fuse/ |
D | dir.c | 604 const char *link) in fuse_symlink() argument 607 unsigned len = strlen(link) + 1; in fuse_symlink() 617 req->in.args[1].value = link; in fuse_symlink() 1056 char *link; in read_link() local 1061 link = (char *) __get_free_page(GFP_KERNEL); in read_link() 1062 if (!link) { in read_link() 1063 link = ERR_PTR(-ENOMEM); in read_link() 1071 req->out.args[0].value = link; in read_link() 1074 free_page((unsigned long) link); in read_link() 1075 link = ERR_PTR(req->out.h.error); in read_link() [all …]
|
D | file.c | 1770 struct rb_node **link = &fc->polled_files.rb_node; in fuse_find_polled_node() local 1773 while (*link) { in fuse_find_polled_node() 1776 last = *link; in fuse_find_polled_node() 1780 link = &last->rb_left; in fuse_find_polled_node() 1782 link = &last->rb_right; in fuse_find_polled_node() 1784 return link; in fuse_find_polled_node() 1789 return link; in fuse_find_polled_node() 1803 struct rb_node **link, *parent; in fuse_register_polled_file() local 1805 link = fuse_find_polled_node(fc, ff->kh, &parent); in fuse_register_polled_file() 1806 BUG_ON(*link); in fuse_register_polled_file() [all …]
|
/fs/isofs/ |
D | rock.c | 434 slp = &rr->u.SL.link; in parse_rock_ridge_inode_internal() 581 slp = &rr->u.SL.link; in get_symlink_chunk() 665 char *link = kmap(page); in rock_ridge_symlink_readpage() local 668 char *rpnt = link; in rock_ridge_symlink_readpage() 729 link + (PAGE_SIZE - 1)); in rock_ridge_symlink_readpage() 748 if (rpnt == link) in rock_ridge_symlink_readpage()
|
/fs/hostfs/ |
D | hostfs_kern.c | 159 static char *follow_link(char *link) in follow_link() argument 171 n = hostfs_do_readlink(link, name, len); in follow_link() 183 end = strrchr(link, '/'); in follow_link() 188 len = strlen(link) + strlen(name) + 1; in follow_link() 196 sprintf(resolved, "%s%s", link, name); in follow_link() 198 kfree(link); in follow_link() 912 .link = hostfs_link, 926 .link = hostfs_link,
|
/fs/ |
D | namei.c | 553 static __always_inline int __vfs_follow_link(struct nameidata *nd, const char *link) in __vfs_follow_link() argument 557 if (IS_ERR(link)) in __vfs_follow_link() 560 if (*link == '/') { in __vfs_follow_link() 571 res = link_path_walk(link, nd); in __vfs_follow_link() 589 return PTR_ERR(link); in __vfs_follow_link() 2398 if (!dir->i_op->link) in vfs_link() 2409 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link() 2475 SYSCALL_DEFINE2(link, const char __user *, oldname, const char __user *, newname) in SYSCALL_DEFINE2() argument 2725 int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen, const char *link) in vfs_readlink() argument 2729 len = PTR_ERR(link); in vfs_readlink() [all …]
|
/fs/cifs/ |
D | Makefile | 7 link.o misc.o netmisc.o smbdes.o smbencrypt.o transport.o asn1.o \
|