diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 345fc89c4286..72e4efee1389 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -161,7 +161,7 @@ cifs_read_super(struct super_block *sb) | |||
161 | 161 | ||
162 | #ifdef CONFIG_CIFS_NFSD_EXPORT | 162 | #ifdef CONFIG_CIFS_NFSD_EXPORT |
163 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { | 163 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { |
164 | cFYI(1, "export ops supported"); | 164 | cifs_dbg(FYI, "export ops supported\n"); |
165 | sb->s_export_op = &cifs_export_ops; | 165 | sb->s_export_op = &cifs_export_ops; |
166 | } | 166 | } |
167 | #endif /* CONFIG_CIFS_NFSD_EXPORT */ | 167 | #endif /* CONFIG_CIFS_NFSD_EXPORT */ |
@@ -169,7 +169,7 @@ cifs_read_super(struct super_block *sb) | |||
169 | return 0; | 169 | return 0; |
170 | 170 | ||
171 | out_no_root: | 171 | out_no_root: |
172 | cERROR(1, "cifs_read_super: get root inode failed"); | 172 | cifs_dbg(VFS, "%s: get root inode failed\n", __func__); |
173 | return rc; | 173 | return rc; |
174 | } | 174 | } |
175 | 175 | ||
@@ -502,7 +502,7 @@ static void cifs_umount_begin(struct super_block *sb) | |||
502 | /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ | 502 | /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ |
503 | /* cancel_notify_requests(tcon); */ | 503 | /* cancel_notify_requests(tcon); */ |
504 | if (tcon->ses && tcon->ses->server) { | 504 | if (tcon->ses && tcon->ses->server) { |
505 | cFYI(1, "wake up tasks now - umount begin not complete"); | 505 | cifs_dbg(FYI, "wake up tasks now - umount begin not complete\n"); |
506 | wake_up_all(&tcon->ses->server->request_q); | 506 | wake_up_all(&tcon->ses->server->request_q); |
507 | wake_up_all(&tcon->ses->server->response_q); | 507 | wake_up_all(&tcon->ses->server->response_q); |
508 | msleep(1); /* yield */ | 508 | msleep(1); /* yield */ |
@@ -573,7 +573,7 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb) | |||
573 | if (full_path == NULL) | 573 | if (full_path == NULL) |
574 | return ERR_PTR(-ENOMEM); | 574 | return ERR_PTR(-ENOMEM); |
575 | 575 | ||
576 | cFYI(1, "Get root dentry for %s", full_path); | 576 | cifs_dbg(FYI, "Get root dentry for %s\n", full_path); |
577 | 577 | ||
578 | sep = CIFS_DIR_SEP(cifs_sb); | 578 | sep = CIFS_DIR_SEP(cifs_sb); |
579 | dentry = dget(sb->s_root); | 579 | dentry = dget(sb->s_root); |
@@ -632,7 +632,7 @@ cifs_do_mount(struct file_system_type *fs_type, | |||
632 | struct cifs_mnt_data mnt_data; | 632 | struct cifs_mnt_data mnt_data; |
633 | struct dentry *root; | 633 | struct dentry *root; |
634 | 634 | ||
635 | cFYI(1, "Devname: %s flags: %d ", dev_name, flags); | 635 | cifs_dbg(FYI, "Devname: %s flags: %d\n", dev_name, flags); |
636 | 636 | ||
637 | volume_info = cifs_get_volume_info((char *)data, dev_name); | 637 | volume_info = cifs_get_volume_info((char *)data, dev_name); |
638 | if (IS_ERR(volume_info)) | 638 | if (IS_ERR(volume_info)) |
@@ -655,7 +655,8 @@ cifs_do_mount(struct file_system_type *fs_type, | |||
655 | rc = cifs_mount(cifs_sb, volume_info); | 655 | rc = cifs_mount(cifs_sb, volume_info); |
656 | if (rc) { | 656 | if (rc) { |
657 | if (!(flags & MS_SILENT)) | 657 | if (!(flags & MS_SILENT)) |
658 | cERROR(1, "cifs_mount failed w/return code = %d", rc); | 658 | cifs_dbg(VFS, "cifs_mount failed w/return code = %d\n", |
659 | rc); | ||
659 | root = ERR_PTR(rc); | 660 | root = ERR_PTR(rc); |
660 | goto out_mountdata; | 661 | goto out_mountdata; |
661 | } | 662 | } |
@@ -675,7 +676,7 @@ cifs_do_mount(struct file_system_type *fs_type, | |||
675 | } | 676 | } |
676 | 677 | ||
677 | if (sb->s_root) { | 678 | if (sb->s_root) { |
678 | cFYI(1, "Use existing superblock"); | 679 | cifs_dbg(FYI, "Use existing superblock\n"); |
679 | cifs_umount(cifs_sb); | 680 | cifs_umount(cifs_sb); |
680 | } else { | 681 | } else { |
681 | rc = cifs_read_super(sb); | 682 | rc = cifs_read_super(sb); |
@@ -691,7 +692,7 @@ cifs_do_mount(struct file_system_type *fs_type, | |||
691 | if (IS_ERR(root)) | 692 | if (IS_ERR(root)) |
692 | goto out_super; | 693 | goto out_super; |
693 | 694 | ||
694 | cFYI(1, "dentry root is: %p", root); | 695 | cifs_dbg(FYI, "dentry root is: %p\n", root); |
695 | goto out; | 696 | goto out; |
696 | 697 | ||
697 | out_super: | 698 | out_super: |
@@ -723,7 +724,8 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov, | |||
723 | 724 | ||
724 | rc = filemap_fdatawrite(inode->i_mapping); | 725 | rc = filemap_fdatawrite(inode->i_mapping); |
725 | if (rc) | 726 | if (rc) |
726 | cFYI(1, "cifs_file_aio_write: %d rc on %p inode", rc, inode); | 727 | cifs_dbg(FYI, "cifs_file_aio_write: %d rc on %p inode\n", |
728 | rc, inode); | ||
727 | 729 | ||
728 | return written; | 730 | return written; |
729 | } | 731 | } |
@@ -1030,7 +1032,10 @@ cifs_init_request_bufs(void) | |||
1030 | } else { | 1032 | } else { |
1031 | CIFSMaxBufSize &= 0x1FE00; /* Round size to even 512 byte mult*/ | 1033 | CIFSMaxBufSize &= 0x1FE00; /* Round size to even 512 byte mult*/ |
1032 | } | 1034 | } |
1033 | /* cERROR(1, "CIFSMaxBufSize %d 0x%x",CIFSMaxBufSize,CIFSMaxBufSize); */ | 1035 | /* |
1036 | cifs_dbg(VFS, "CIFSMaxBufSize %d 0x%x\n", | ||
1037 | CIFSMaxBufSize, CIFSMaxBufSize); | ||
1038 | */ | ||
1034 | cifs_req_cachep = kmem_cache_create("cifs_request", | 1039 | cifs_req_cachep = kmem_cache_create("cifs_request", |
1035 | CIFSMaxBufSize + max_hdr_size, 0, | 1040 | CIFSMaxBufSize + max_hdr_size, 0, |
1036 | SLAB_HWCACHE_ALIGN, NULL); | 1041 | SLAB_HWCACHE_ALIGN, NULL); |
@@ -1041,7 +1046,7 @@ cifs_init_request_bufs(void) | |||
1041 | cifs_min_rcv = 1; | 1046 | cifs_min_rcv = 1; |
1042 | else if (cifs_min_rcv > 64) { | 1047 | else if (cifs_min_rcv > 64) { |
1043 | cifs_min_rcv = 64; | 1048 | cifs_min_rcv = 64; |
1044 | cERROR(1, "cifs_min_rcv set to maximum (64)"); | 1049 | cifs_dbg(VFS, "cifs_min_rcv set to maximum (64)\n"); |
1045 | } | 1050 | } |
1046 | 1051 | ||
1047 | cifs_req_poolp = mempool_create_slab_pool(cifs_min_rcv, | 1052 | cifs_req_poolp = mempool_create_slab_pool(cifs_min_rcv, |
@@ -1072,7 +1077,7 @@ cifs_init_request_bufs(void) | |||
1072 | cifs_min_small = 2; | 1077 | cifs_min_small = 2; |
1073 | else if (cifs_min_small > 256) { | 1078 | else if (cifs_min_small > 256) { |
1074 | cifs_min_small = 256; | 1079 | cifs_min_small = 256; |
1075 | cFYI(1, "cifs_min_small set to maximum (256)"); | 1080 | cifs_dbg(FYI, "cifs_min_small set to maximum (256)\n"); |
1076 | } | 1081 | } |
1077 | 1082 | ||
1078 | cifs_sm_req_poolp = mempool_create_slab_pool(cifs_min_small, | 1083 | cifs_sm_req_poolp = mempool_create_slab_pool(cifs_min_small, |
@@ -1163,10 +1168,11 @@ init_cifs(void) | |||
1163 | 1168 | ||
1164 | if (cifs_max_pending < 2) { | 1169 | if (cifs_max_pending < 2) { |
1165 | cifs_max_pending = 2; | 1170 | cifs_max_pending = 2; |
1166 | cFYI(1, "cifs_max_pending set to min of 2"); | 1171 | cifs_dbg(FYI, "cifs_max_pending set to min of 2\n"); |
1167 | } else if (cifs_max_pending > CIFS_MAX_REQ) { | 1172 | } else if (cifs_max_pending > CIFS_MAX_REQ) { |
1168 | cifs_max_pending = CIFS_MAX_REQ; | 1173 | cifs_max_pending = CIFS_MAX_REQ; |
1169 | cFYI(1, "cifs_max_pending set to max of %u", CIFS_MAX_REQ); | 1174 | cifs_dbg(FYI, "cifs_max_pending set to max of %u\n", |
1175 | CIFS_MAX_REQ); | ||
1170 | } | 1176 | } |
1171 | 1177 | ||
1172 | cifsiod_wq = alloc_workqueue("cifsiod", WQ_FREEZABLE|WQ_MEM_RECLAIM, 0); | 1178 | cifsiod_wq = alloc_workqueue("cifsiod", WQ_FREEZABLE|WQ_MEM_RECLAIM, 0); |
@@ -1235,7 +1241,7 @@ out_clean_proc: | |||
1235 | static void __exit | 1241 | static void __exit |
1236 | exit_cifs(void) | 1242 | exit_cifs(void) |
1237 | { | 1243 | { |
1238 | cFYI(DBG2, "exit_cifs"); | 1244 | cifs_dbg(NOISY, "exit_cifs\n"); |
1239 | unregister_filesystem(&cifs_fs_type); | 1245 | unregister_filesystem(&cifs_fs_type); |
1240 | cifs_dfs_release_automount_timer(); | 1246 | cifs_dfs_release_automount_timer(); |
1241 | #ifdef CONFIG_CIFS_ACL | 1247 | #ifdef CONFIG_CIFS_ACL |