/* Needed to setup cifs_fattr data for the directory which is the junction to the new submount (ie to setup the fake directory which represents a DFS referral).  */
static void cifs_create_dfs_fattr(struct cifs_fattr *fattr, struct super_block *sb)
/* Needed to setup cifs_fattr data for the directory which is the junction to the new submount (ie to setup the fake directory which represents a DFS referral).  */
static void cifs_create_dfs_fattr(struct cifs_fattr *fattr, struct super_block *sb)
{
	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
	cFYI(1, ("creating fake fattr for DFS referral"));
	memset(fattr, 0, sizeof(*fattr));
	fattr->cf_mode = S_IFDIR | S_IXUGO | S_IRWXU;
	fattr->cf_uid = cifs_sb->mnt_uid;
	fattr->cf_gid = cifs_sb->mnt_gid;
	fattr->cf_atime = CURRENT_TIME;
	fattr->cf_ctime = CURRENT_TIME;
	fattr->cf_mtime = CURRENT_TIME;
	fattr->cf_nlink = 2;
	fattr->cf_flags |= CIFS_FATTR_DFS_REFERRAL;
}