diff options
Diffstat (limited to 'fs/nfs/symlink.c')
| -rw-r--r-- | fs/nfs/symlink.c | 7 | 
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c index f4a0548b9ce..83e865a16ad 100644 --- a/fs/nfs/symlink.c +++ b/fs/nfs/symlink.c @@ -22,7 +22,6 @@  #include <linux/mm.h>  #include <linux/slab.h>  #include <linux/string.h> -#include <linux/smp_lock.h>  #include <linux/namei.h>  /* 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)  		err = page;  		goto read_failed;  	} -	if (!PageUptodate(page)) { -		err = ERR_PTR(-EIO); -		goto getlink_read_error; -	}  	nd_set_link(nd, kmap(page));  	return page; -getlink_read_error: -	page_cache_release(page);  read_failed:  	nd_set_link(nd, err);  	return NULL;  | 
