diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index db5d96dc6107..cd0e57f3a00f 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -814,8 +814,9 @@ static void nfs_wcc_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
814 | if (S_ISDIR(inode->i_mode)) | 814 | if (S_ISDIR(inode->i_mode)) |
815 | nfsi->cache_validity |= NFS_INO_INVALID_DATA; | 815 | nfsi->cache_validity |= NFS_INO_INVALID_DATA; |
816 | } | 816 | } |
817 | if (inode->i_size == fattr->pre_size && nfsi->npages == 0) | 817 | if (inode->i_size == nfs_size_to_loff_t(fattr->pre_size) && |
818 | inode->i_size = fattr->size; | 818 | nfsi->npages == 0) |
819 | inode->i_size = nfs_size_to_loff_t(fattr->size); | ||
819 | } | 820 | } |
820 | } | 821 | } |
821 | 822 | ||