cifs: add cifs_sb_master_tcon and convert some callers to use it
authorJeff Layton <jlayton@redhat.com>
Mon, 20 Sep 2010 23:01:35 +0000 (16:01 -0700)
committerSteve French <sfrench@us.ibm.com>
Wed, 29 Sep 2010 19:04:33 +0000 (19:04 +0000)
commit0d424ad0a4b8c08e45928bccfa5b4b240097b01b
tree40f383b138d2e8121cda4b28f1f7c4b9642fe5ec
parentf6acb9d0596889a774e142ed76cb05b90d9763d2
cifs: add cifs_sb_master_tcon and convert some callers to use it

At mount time, we'll always need to create a tcon that will serve as a
template for others that are associated with the mount. This tcon is
known as the "master" tcon.

In some cases, we'll need to use that tcon regardless of who's accessing
the mount. Add an accessor function for the master tcon and go ahead and
switch the appropriate places to use it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/dir.c
fs/cifs/fscache.c
fs/cifs/inode.c
fs/cifs/misc.c
fs/cifs/readdir.c