diff options
Diffstat (limited to 'fs/smbfs/inode.c')
-rw-r--r-- | fs/smbfs/inode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 450c9194198..f6e9ee59757 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
@@ -229,7 +229,6 @@ smb_invalidate_inodes(struct smb_sb_info *server) | |||
229 | { | 229 | { |
230 | VERBOSE("\n"); | 230 | VERBOSE("\n"); |
231 | shrink_dcache_sb(SB_of(server)); | 231 | shrink_dcache_sb(SB_of(server)); |
232 | invalidate_inodes(SB_of(server)); | ||
233 | } | 232 | } |
234 | 233 | ||
235 | /* | 234 | /* |
@@ -501,6 +500,8 @@ static int smb_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
501 | void *mem; | 500 | void *mem; |
502 | static int warn_count; | 501 | static int warn_count; |
503 | 502 | ||
503 | lock_kernel(); | ||
504 | |||
504 | if (warn_count < 5) { | 505 | if (warn_count < 5) { |
505 | warn_count++; | 506 | warn_count++; |
506 | printk(KERN_EMERG "smbfs is deprecated and will be removed" | 507 | printk(KERN_EMERG "smbfs is deprecated and will be removed" |
@@ -621,6 +622,7 @@ static int smb_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
621 | 622 | ||
622 | smb_new_dentry(sb->s_root); | 623 | smb_new_dentry(sb->s_root); |
623 | 624 | ||
625 | unlock_kernel(); | ||
624 | return 0; | 626 | return 0; |
625 | 627 | ||
626 | out_no_root: | 628 | out_no_root: |
@@ -643,9 +645,11 @@ out_wrong_data: | |||
643 | out_no_data: | 645 | out_no_data: |
644 | printk(KERN_ERR "smb_fill_super: missing data argument\n"); | 646 | printk(KERN_ERR "smb_fill_super: missing data argument\n"); |
645 | out_fail: | 647 | out_fail: |
648 | unlock_kernel(); | ||
646 | return -EINVAL; | 649 | return -EINVAL; |
647 | out_no_server: | 650 | out_no_server: |
648 | printk(KERN_ERR "smb_fill_super: cannot allocate struct smb_sb_info\n"); | 651 | printk(KERN_ERR "smb_fill_super: cannot allocate struct smb_sb_info\n"); |
652 | unlock_kernel(); | ||
649 | return -ENOMEM; | 653 | return -ENOMEM; |
650 | } | 654 | } |
651 | 655 | ||