diff options
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 487221eeddb7..42310281871c 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c | |||
@@ -354,7 +354,7 @@ static int initiate_cifs_search(const int xid, struct file *file) | |||
354 | return -EINVAL; | 354 | return -EINVAL; |
355 | 355 | ||
356 | down(&file->f_dentry->d_sb->s_vfs_rename_sem); | 356 | down(&file->f_dentry->d_sb->s_vfs_rename_sem); |
357 | full_path = build_path_from_dentry(file->f_dentry); | 357 | full_path = build_path_from_dentry(file->f_dentry, cifs_sb); |
358 | up(&file->f_dentry->d_sb->s_vfs_rename_sem); | 358 | up(&file->f_dentry->d_sb->s_vfs_rename_sem); |
359 | 359 | ||
360 | if(full_path == NULL) { | 360 | if(full_path == NULL) { |
@@ -375,7 +375,7 @@ ffirst_retry: | |||
375 | 375 | ||
376 | rc = CIFSFindFirst(xid, pTcon,full_path,cifs_sb->local_nls, | 376 | rc = CIFSFindFirst(xid, pTcon,full_path,cifs_sb->local_nls, |
377 | &cifsFile->netfid, &cifsFile->srch_inf, | 377 | &cifsFile->netfid, &cifsFile->srch_inf, |
378 | cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); | 378 | cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR, CIFS_DIR_SEP(cifs_sb)); |
379 | if(rc == 0) | 379 | if(rc == 0) |
380 | cifsFile->invalidHandle = FALSE; | 380 | cifsFile->invalidHandle = FALSE; |
381 | if((rc == -EOPNOTSUPP) && | 381 | if((rc == -EOPNOTSUPP) && |