diff options
Diffstat (limited to 'fs/cifs/link.c')
| -rw-r--r-- | fs/cifs/link.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 9562f5bba65c..2ec99f833142 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
| @@ -48,10 +48,8 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode, | |||
| 48 | /* No need to check for cross device links since server will do that | 48 | /* No need to check for cross device links since server will do that |
| 49 | BB note DFS case in future though (when we may have to check) */ | 49 | BB note DFS case in future though (when we may have to check) */ |
| 50 | 50 | ||
| 51 | mutex_lock(&inode->i_sb->s_vfs_rename_mutex); | ||
| 52 | fromName = build_path_from_dentry(old_file); | 51 | fromName = build_path_from_dentry(old_file); |
| 53 | toName = build_path_from_dentry(direntry); | 52 | toName = build_path_from_dentry(direntry); |
| 54 | mutex_unlock(&inode->i_sb->s_vfs_rename_mutex); | ||
| 55 | if((fromName == NULL) || (toName == NULL)) { | 53 | if((fromName == NULL) || (toName == NULL)) { |
| 56 | rc = -ENOMEM; | 54 | rc = -ENOMEM; |
| 57 | goto cifs_hl_exit; | 55 | goto cifs_hl_exit; |
| @@ -103,9 +101,7 @@ cifs_follow_link(struct dentry *direntry, struct nameidata *nd) | |||
| 103 | 101 | ||
| 104 | xid = GetXid(); | 102 | xid = GetXid(); |
| 105 | 103 | ||
| 106 | mutex_lock(&direntry->d_sb->s_vfs_rename_mutex); | ||
| 107 | full_path = build_path_from_dentry(direntry); | 104 | full_path = build_path_from_dentry(direntry); |
| 108 | mutex_unlock(&direntry->d_sb->s_vfs_rename_mutex); | ||
| 109 | 105 | ||
| 110 | if (!full_path) | 106 | if (!full_path) |
| 111 | goto out_no_free; | 107 | goto out_no_free; |
| @@ -164,9 +160,7 @@ cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname) | |||
| 164 | cifs_sb = CIFS_SB(inode->i_sb); | 160 | cifs_sb = CIFS_SB(inode->i_sb); |
| 165 | pTcon = cifs_sb->tcon; | 161 | pTcon = cifs_sb->tcon; |
| 166 | 162 | ||
| 167 | mutex_lock(&inode->i_sb->s_vfs_rename_mutex); | ||
| 168 | full_path = build_path_from_dentry(direntry); | 163 | full_path = build_path_from_dentry(direntry); |
| 169 | mutex_unlock(&inode->i_sb->s_vfs_rename_mutex); | ||
| 170 | 164 | ||
| 171 | if(full_path == NULL) { | 165 | if(full_path == NULL) { |
| 172 | FreeXid(xid); | 166 | FreeXid(xid); |
