aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index b21038b99fc2..e842ce9f6547 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -163,9 +163,9 @@ int cifs_get_inode_info_unix(struct inode **pinode,
163 163
164 if (num_of_bytes < end_of_file) 164 if (num_of_bytes < end_of_file)
165 cFYI(1, ("allocation size less than end of file")); 165 cFYI(1, ("allocation size less than end of file"));
166 cFYI(1, 166 cFYI(1, ("Size %ld and blocks %llu",
167 ("Size %ld and blocks %ld", 167 (unsigned long) inode->i_size,
168 (unsigned long) inode->i_size, inode->i_blocks)); 168 (unsigned long long)inode->i_blocks));
169 if (S_ISREG(inode->i_mode)) { 169 if (S_ISREG(inode->i_mode)) {
170 cFYI(1, ("File inode")); 170 cFYI(1, ("File inode"));
171 inode->i_op = &cifs_file_inode_ops; 171 inode->i_op = &cifs_file_inode_ops;
@@ -574,9 +574,9 @@ int cifs_unlink(struct inode *inode, struct dentry *direntry)
574 574
575 /* Unlink can be called from rename so we can not grab the sem here 575 /* Unlink can be called from rename so we can not grab the sem here
576 since we deadlock otherwise */ 576 since we deadlock otherwise */
577/* down(&direntry->d_sb->s_vfs_rename_sem);*/ 577/* mutex_lock(&direntry->d_sb->s_vfs_rename_mutex);*/
578 full_path = build_path_from_dentry(direntry); 578 full_path = build_path_from_dentry(direntry);
579/* up(&direntry->d_sb->s_vfs_rename_sem);*/ 579/* mutex_unlock(&direntry->d_sb->s_vfs_rename_mutex);*/
580 if (full_path == NULL) { 580 if (full_path == NULL) {
581 FreeXid(xid); 581 FreeXid(xid);
582 return -ENOMEM; 582 return -ENOMEM;
@@ -717,9 +717,9 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
717 cifs_sb = CIFS_SB(inode->i_sb); 717 cifs_sb = CIFS_SB(inode->i_sb);
718 pTcon = cifs_sb->tcon; 718 pTcon = cifs_sb->tcon;
719 719
720 down(&inode->i_sb->s_vfs_rename_sem); 720 mutex_lock(&inode->i_sb->s_vfs_rename_mutex);
721 full_path = build_path_from_dentry(direntry); 721 full_path = build_path_from_dentry(direntry);
722 up(&inode->i_sb->s_vfs_rename_sem); 722 mutex_unlock(&inode->i_sb->s_vfs_rename_mutex);
723 if (full_path == NULL) { 723 if (full_path == NULL) {
724 FreeXid(xid); 724 FreeXid(xid);
725 return -ENOMEM; 725 return -ENOMEM;
@@ -802,9 +802,9 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry)
802 cifs_sb = CIFS_SB(inode->i_sb); 802 cifs_sb = CIFS_SB(inode->i_sb);
803 pTcon = cifs_sb->tcon; 803 pTcon = cifs_sb->tcon;
804 804
805 down(&inode->i_sb->s_vfs_rename_sem); 805 mutex_lock(&inode->i_sb->s_vfs_rename_mutex);
806 full_path = build_path_from_dentry(direntry); 806 full_path = build_path_from_dentry(direntry);
807 up(&inode->i_sb->s_vfs_rename_sem); 807 mutex_unlock(&inode->i_sb->s_vfs_rename_mutex);
808 if (full_path == NULL) { 808 if (full_path == NULL) {
809 FreeXid(xid); 809 FreeXid(xid);
810 return -ENOMEM; 810 return -ENOMEM;
@@ -1136,9 +1136,9 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
1136 rc = 0; 1136 rc = 0;
1137 } 1137 }
1138 1138
1139 down(&direntry->d_sb->s_vfs_rename_sem); 1139 mutex_lock(&direntry->d_sb->s_vfs_rename_mutex);
1140 full_path = build_path_from_dentry(direntry); 1140 full_path = build_path_from_dentry(direntry);
1141 up(&direntry->d_sb->s_vfs_rename_sem); 1141 mutex_unlock(&direntry->d_sb->s_vfs_rename_mutex);
1142 if (full_path == NULL) { 1142 if (full_path == NULL) {
1143 FreeXid(xid); 1143 FreeXid(xid);
1144 return -ENOMEM; 1144 return -ENOMEM;