aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index ddd11fa15528..1d0ca3eaaca5 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -139,9 +139,9 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
139 cifs_sb = CIFS_SB(inode->i_sb); 139 cifs_sb = CIFS_SB(inode->i_sb);
140 pTcon = cifs_sb->tcon; 140 pTcon = cifs_sb->tcon;
141 141
142 down(&direntry->d_sb->s_vfs_rename_sem); 142 mutex_lock(&direntry->d_sb->s_vfs_rename_mutex);
143 full_path = build_path_from_dentry(direntry); 143 full_path = build_path_from_dentry(direntry);
144 up(&direntry->d_sb->s_vfs_rename_sem); 144 mutex_unlock(&direntry->d_sb->s_vfs_rename_mutex);
145 if(full_path == NULL) { 145 if(full_path == NULL) {
146 FreeXid(xid); 146 FreeXid(xid);
147 return -ENOMEM; 147 return -ENOMEM;
@@ -316,9 +316,9 @@ int cifs_mknod(struct inode *inode, struct dentry *direntry, int mode,
316 cifs_sb = CIFS_SB(inode->i_sb); 316 cifs_sb = CIFS_SB(inode->i_sb);
317 pTcon = cifs_sb->tcon; 317 pTcon = cifs_sb->tcon;
318 318
319 down(&direntry->d_sb->s_vfs_rename_sem); 319 mutex_lock(&direntry->d_sb->s_vfs_rename_mutex);
320 full_path = build_path_from_dentry(direntry); 320 full_path = build_path_from_dentry(direntry);
321 up(&direntry->d_sb->s_vfs_rename_sem); 321 mutex_unlock(&direntry->d_sb->s_vfs_rename_mutex);
322 if(full_path == NULL) 322 if(full_path == NULL)
323 rc = -ENOMEM; 323 rc = -ENOMEM;
324 else if (pTcon->ses->capabilities & CAP_UNIX) { 324 else if (pTcon->ses->capabilities & CAP_UNIX) {