aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/symlink.c')
-rw-r--r--fs/nfs/symlink.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c
index f4a0548b9ce8..83e865a16ad1 100644
--- a/fs/nfs/symlink.c
+++ b/fs/nfs/symlink.c
@@ -22,7 +22,6 @@
22#include <linux/mm.h> 22#include <linux/mm.h>
23#include <linux/slab.h> 23#include <linux/slab.h>
24#include <linux/string.h> 24#include <linux/string.h>
25#include <linux/smp_lock.h>
26#include <linux/namei.h> 25#include <linux/namei.h>
27 26
28/* Symlink caching in the page cache is even more simplistic 27/* Symlink caching in the page cache is even more simplistic
@@ -61,15 +60,9 @@ static void *nfs_follow_link(struct dentry *dentry, struct nameidata *nd)
61 err = page; 60 err = page;
62 goto read_failed; 61 goto read_failed;
63 } 62 }
64 if (!PageUptodate(page)) {
65 err = ERR_PTR(-EIO);
66 goto getlink_read_error;
67 }
68 nd_set_link(nd, kmap(page)); 63 nd_set_link(nd, kmap(page));
69 return page; 64 return page;
70 65
71getlink_read_error:
72 page_cache_release(page);
73read_failed: 66read_failed:
74 nd_set_link(nd, err); 67 nd_set_link(nd, err);
75 return NULL; 68 return NULL;