diff options
author | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
commit | d62e54abca1146981fc9f98f85ff398a113a22c2 (patch) | |
tree | 870420dbc4c65e716dcef8a802aafdc0ef97a8b4 /fs/cifs/dir.c | |
parent | fd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (diff) | |
parent | ce362c009250340358a7221f3cdb7954cbf19c01 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 8 |
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) { |