aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs/namei.c')
-rw-r--r--fs/hpfs/namei.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c
index ae4d5a1fa4c9..506765afa1a3 100644
--- a/fs/hpfs/namei.c
+++ b/fs/hpfs/namei.c
@@ -332,6 +332,7 @@ static int hpfs_symlink(struct inode *dir, struct dentry *dentry, const char *sy
332 result->i_blocks = 1; 332 result->i_blocks = 1;
333 set_nlink(result, 1); 333 set_nlink(result, 1);
334 result->i_size = strlen(symlink); 334 result->i_size = strlen(symlink);
335 inode_nohighmem(result);
335 result->i_op = &page_symlink_inode_operations; 336 result->i_op = &page_symlink_inode_operations;
336 result->i_data.a_ops = &hpfs_symlink_aops; 337 result->i_data.a_ops = &hpfs_symlink_aops;
337 338
@@ -500,7 +501,7 @@ out:
500 501
501static int hpfs_symlink_readpage(struct file *file, struct page *page) 502static int hpfs_symlink_readpage(struct file *file, struct page *page)
502{ 503{
503 char *link = kmap(page); 504 char *link = page_address(page);
504 struct inode *i = page->mapping->host; 505 struct inode *i = page->mapping->host;
505 struct fnode *fnode; 506 struct fnode *fnode;
506 struct buffer_head *bh; 507 struct buffer_head *bh;
@@ -516,14 +517,12 @@ static int hpfs_symlink_readpage(struct file *file, struct page *page)
516 goto fail; 517 goto fail;
517 hpfs_unlock(i->i_sb); 518 hpfs_unlock(i->i_sb);
518 SetPageUptodate(page); 519 SetPageUptodate(page);
519 kunmap(page);
520 unlock_page(page); 520 unlock_page(page);
521 return 0; 521 return 0;
522 522
523fail: 523fail:
524 hpfs_unlock(i->i_sb); 524 hpfs_unlock(i->i_sb);
525 SetPageError(page); 525 SetPageError(page);
526 kunmap(page);
527 unlock_page(page); 526 unlock_page(page);
528 return err; 527 return err;
529} 528}