projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04db79b
)
cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL
author
Jeff Layton
<
[email protected]
>
Sat, 9 Jul 2011 16:21:07 +0000
(12:21 -0400)
committer
Steve French
<
[email protected]
>
Sat, 9 Jul 2011 20:29:51 +0000
(20:29 +0000)
This needs to be done regardless of whether that KConfig option is set
or not.
Reported-by: Sven-Haegar Koch <
[email protected]
>
Signed-off-by: Jeff Layton <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
fs/cifs/connect.c
patch
|
blob
|
history
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index 46cc0ad034876dadd6c391b7cf1f28c28bac4d6c..511176903e573605f6dddaf35a848a54f43c82f5 100644
(file)
--- a/
fs/cifs/connect.c
+++ b/
fs/cifs/connect.c
@@
-3002,6
+3002,7
@@
cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *volume_info)
struct tcon_link *tlink;
#ifdef CONFIG_CIFS_DFS_UPCALL
int referral_walks_count = 0;
+#endif
rc = bdi_setup_and_register(&cifs_sb->bdi, "cifs", BDI_CAP_MAP_COPY);
if (rc)
@@
-3009,6
+3010,7
@@
cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *volume_info)
cifs_sb->bdi.ra_pages = default_backing_dev_info.ra_pages;
+#ifdef CONFIG_CIFS_DFS_UPCALL
try_mount_again:
/* cleanup activities if we're chasing a referral */
if (referral_walks_count) {