diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-08-22 17:31:36 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-08-22 17:31:36 -0400 |
| commit | 729c80c6ffd7633210a09d4b55fdfab3c8d1866b (patch) | |
| tree | a8fe47dfa3da91b9902e61c55a811d3a66614fc8 /fs/nfs/file.c | |
| parent | 4eaefb39528b3a78fb6a784162200b198d3e16ee (diff) | |
| parent | f6fdd7d9c273bb2a20ab467cb57067494f932fa3 (diff) | |
Auto-update from upstream
Diffstat (limited to 'fs/nfs/file.c')
| -rw-r--r-- | fs/nfs/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 5621ba9885f4..f6b9eda925c5 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
| @@ -134,9 +134,10 @@ nfs_file_release(struct inode *inode, struct file *filp) | |||
| 134 | */ | 134 | */ |
| 135 | static int nfs_revalidate_file(struct inode *inode, struct file *filp) | 135 | static int nfs_revalidate_file(struct inode *inode, struct file *filp) |
| 136 | { | 136 | { |
| 137 | struct nfs_inode *nfsi = NFS_I(inode); | ||
| 137 | int retval = 0; | 138 | int retval = 0; |
| 138 | 139 | ||
| 139 | if ((NFS_FLAGS(inode) & NFS_INO_REVAL_PAGECACHE) || nfs_attribute_timeout(inode)) | 140 | if ((nfsi->cache_validity & NFS_INO_REVAL_PAGECACHE) || nfs_attribute_timeout(inode)) |
| 140 | retval = __nfs_revalidate_inode(NFS_SERVER(inode), inode); | 141 | retval = __nfs_revalidate_inode(NFS_SERVER(inode), inode); |
| 141 | nfs_revalidate_mapping(inode, filp->f_mapping); | 142 | nfs_revalidate_mapping(inode, filp->f_mapping); |
| 142 | return 0; | 143 | return 0; |
| @@ -164,7 +165,7 @@ static int nfs_revalidate_file_size(struct inode *inode, struct file *filp) | |||
| 164 | goto force_reval; | 165 | goto force_reval; |
| 165 | if (nfsi->npages != 0) | 166 | if (nfsi->npages != 0) |
| 166 | return 0; | 167 | return 0; |
| 167 | if (!(NFS_FLAGS(inode) & NFS_INO_REVAL_PAGECACHE) && !nfs_attribute_timeout(inode)) | 168 | if (!(nfsi->cache_validity & NFS_INO_REVAL_PAGECACHE) && !nfs_attribute_timeout(inode)) |
| 168 | return 0; | 169 | return 0; |
| 169 | force_reval: | 170 | force_reval: |
| 170 | return __nfs_revalidate_inode(server, inode); | 171 | return __nfs_revalidate_inode(server, inode); |
