symlink.c (2fc2991175bf77395e6b15fe6b2304d3bf72da40) symlink.c (44b11874ff583b6e766a05856b04f3c492c32b84)
1/*
2 * linux/fs/nfs/symlink.c
3 *
4 * Copyright (C) 1992 Rick Sladkey
5 *
6 * Optimization changes Copyright (C) 1994 Florian La Roche
7 *
8 * Jun 7 1999, cache symlink lookups in the page cache. -DaveM

--- 38 unchanged lines hidden (view full) ---

47 unlock_page(page);
48 return -EIO;
49}
50
51static void *nfs_follow_link(struct dentry *dentry, struct nameidata *nd)
52{
53 struct inode *inode = dentry->d_inode;
54 struct page *page;
1/*
2 * linux/fs/nfs/symlink.c
3 *
4 * Copyright (C) 1992 Rick Sladkey
5 *
6 * Optimization changes Copyright (C) 1994 Florian La Roche
7 *
8 * Jun 7 1999, cache symlink lookups in the page cache. -DaveM

--- 38 unchanged lines hidden (view full) ---

47 unlock_page(page);
48 return -EIO;
49}
50
51static void *nfs_follow_link(struct dentry *dentry, struct nameidata *nd)
52{
53 struct inode *inode = dentry->d_inode;
54 struct page *page;
55 void *err = ERR_PTR(nfs_revalidate_inode(NFS_SERVER(inode), inode));
55 void *err = ERR_PTR(nfs_revalidate_mapping(inode, inode->i_mapping));
56 if (err)
57 goto read_failed;
58 page = read_cache_page(&inode->i_data, 0,
59 (filler_t *)nfs_symlink_filler, inode);
60 if (IS_ERR(page)) {
61 err = page;
62 goto read_failed;
63 }

--- 33 unchanged lines hidden ---
56 if (err)
57 goto read_failed;
58 page = read_cache_page(&inode->i_data, 0,
59 (filler_t *)nfs_symlink_filler, inode);
60 if (IS_ERR(page)) {
61 err = page;
62 goto read_failed;
63 }

--- 33 unchanged lines hidden ---