/* If the page cache is marked as unsafe or invalid, then we can't rely on the PageUptodate() flag. In this case, we will need to turn off write optimisations that depend on the page contents being correct.  */
static int nfs_write_pageuptodate(struct page *page, struct inode *inode)
/* If the page cache is marked as unsafe or invalid, then we can't rely on the PageUptodate() flag. In this case, we will need to turn off write optimisations that depend on the page contents being correct.  */
static int nfs_write_pageuptodate(struct page *page, struct inode *inode)
{
	return PageUptodate(page) &&
		!(NFS_I(inode)->cache_validity & (NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA));
}