/* Check that an RPC call that returned attributes has not overlapped with other recent updates of the inode metadata, then decide whether it is safe to do a full update of the inode attributes, or whether just to call nfs_check_inode_attributes.  */
int nfs_refresh_inode(struct inode *inode, struct nfs_fattr *fattr)
/* Check that an RPC call that returned attributes has not overlapped with other recent updates of the inode metadata, then decide whether it is safe to do a full update of the inode attributes, or whether just to call nfs_check_inode_attributes.  */
int nfs_refresh_inode(struct inode *inode, struct nfs_fattr *fattr)
{
	int status;
	if ((fattr->valid & NFS_ATTR_FATTR) == 0)
		return 0;
	spin_lock(&inode->i_lock);
	status = nfs_refresh_inode_locked(inode, fattr);
	spin_unlock(&inode->i_lock);
	return status;
}