Skip to content

Commit

Permalink
[CIFS] Fix build break from recent DFS patch when DFS support not ena…
Browse files Browse the repository at this point in the history
…bled

Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Apr 17, 2009
1 parent 1bfe73c commit d036f50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -2522,6 +2522,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,

/* get referral if needed */
if (rc == -EREMOTE) {
#ifdef CONFIG_CIFS_DFS_UPCALL
/* convert forward to back slashes in prepath here if needed */
if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) == 0)
convert_delimiter(cifs_sb->prepath,
Expand Down Expand Up @@ -2557,6 +2558,9 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
kfree(full_path);
goto try_mount_again;
}
#else /* No DFS support, return error on mount */
rc = -EOPNOTSUPP;
#endif
}

mount_fail_check:
Expand Down

0 comments on commit d036f50

Please sign in to comment.