* [PATCH] cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL
@ 2011-07-09 16:21 Jeff Layton
2011-07-09 22:13 ` Steve French
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2011-07-09 16:21 UTC (permalink / raw)
To: smfrench; +Cc: viro, linux-cifs, linux-kernel
This needs to be done regardless of whether that KConfig option is set
or not.
Reported-by: Sven-Haegar Koch <haegar@sdinet.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/cifs/connect.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index fea9ecf..dd695c5 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3011,6 +3011,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)
@@ -3018,6 +3019,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) {
--
1.7.6
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL
2011-07-09 16:21 [PATCH] cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL Jeff Layton
@ 2011-07-09 22:13 ` Steve French
0 siblings, 0 replies; 2+ messages in thread
From: Steve French @ 2011-07-09 22:13 UTC (permalink / raw)
To: Jeff Layton; +Cc: viro, linux-cifs, linux-kernel
looks correct; merged
On Sat, Jul 9, 2011 at 11:21 AM, Jeff Layton <jlayton@redhat.com> wrote:
> This needs to be done regardless of whether that KConfig option is set
> or not.
>
> Reported-by: Sven-Haegar Koch <haegar@sdinet.de>
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> ---
> fs/cifs/connect.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
> index fea9ecf..dd695c5 100644
> --- a/fs/cifs/connect.c
> +++ b/fs/cifs/connect.c
> @@ -3011,6 +3011,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)
> @@ -3018,6 +3019,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) {
> --
> 1.7.6
>
>
--
Thanks,
Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-09 22:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-09 16:21 [PATCH] cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL Jeff Layton
2011-07-09 22:13 ` Steve French
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®