diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-09-20 19:01:33 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-09-29 15:04:32 -0400 |
commit | a6e8a8455c94565c53e1a1756d2ab9d9e3a902b8 (patch) | |
tree | 544628293da6aa14a136c915d887d0abdc689a03 /fs/cifs/connect.c | |
parent | ba00ba64cf0895e4c2ac507e56306363dc125a90 (diff) |
cifs: add function to get a tcon from cifs_sb
When we convert cifs to do multiple sessions per mount, we'll need more
than one tcon per superblock. At that point "cifs_sb->tcon" will make
no sense. Add a new accessor function that gets a tcon given a cifs_sb.
For now, it just returns cifs_sb->tcon. Later it'll do more.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 230410e0a453..c42d37fb5b7c 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -3026,8 +3026,8 @@ cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb) | |||
3026 | int rc = 0; | 3026 | int rc = 0; |
3027 | char *tmp; | 3027 | char *tmp; |
3028 | 3028 | ||
3029 | if (cifs_sb->tcon) | 3029 | if (cifs_sb_tcon(cifs_sb)) |
3030 | cifs_put_tcon(cifs_sb->tcon); | 3030 | cifs_put_tcon(cifs_sb_tcon(cifs_sb)); |
3031 | 3031 | ||
3032 | cifs_sb->tcon = NULL; | 3032 | cifs_sb->tcon = NULL; |
3033 | tmp = cifs_sb->prepath; | 3033 | tmp = cifs_sb->prepath; |