/* Use intent information to check whether or not we're going to do an O_EXCL create using this path component.  */
static int nfs_is_exclusive_create(struct inode *dir, struct nameidata *nd)
/* Use intent information to check whether or not we're going to do an O_EXCL create using this path component.  */
static int nfs_is_exclusive_create(struct inode *dir, struct nameidata *nd)
{
	if (NFS_PROTO(dir)->version == 2)
		return 0;
	return nd && nfs_lookup_check_intent(nd, LOOKUP_EXCL);
}