Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124988
b: refs/heads/master
c: ebd09ab
h: refs/heads/master
v: v3
  • Loading branch information
Duane Griffin authored and Al Viro committed Dec 31, 2008
1 parent f89ea5c commit a168215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 035146851cfa2fe24c1d9dc7637bb009ad06b2f7
refs/heads/master: ebd09abbd9699f328165aee50a070403fbf55a37
7 changes: 5 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2786,13 +2786,16 @@ int vfs_follow_link(struct nameidata *nd, const char *link)
/* get the link contents into pagecache */
static char *page_getlink(struct dentry * dentry, struct page **ppage)
{
struct page * page;
char *kaddr;
struct page *page;
struct address_space *mapping = dentry->d_inode->i_mapping;
page = read_mapping_page(mapping, 0, NULL);
if (IS_ERR(page))
return (char*)page;
*ppage = page;
return kmap(page);
kaddr = kmap(page);
nd_terminate_link(kaddr, dentry->d_inode->i_size, PAGE_SIZE - 1);
return kaddr;
}

int page_readlink(struct dentry *dentry, char __user *buffer, int buflen)
Expand Down

0 comments on commit a168215

Please sign in to comment.