]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: have cifsFileInfo hold a reference to a tlink rather than tcon pointer
authorJeff Layton <jlayton@redhat.com>
Wed, 29 Sep 2010 23:51:11 +0000 (19:51 -0400)
committerSteve French <sfrench@us.ibm.com>
Wed, 6 Oct 2010 16:12:49 +0000 (16:12 +0000)
commit5d886bf1ed63bf28e199e860ec10c4d3ff06d3da
tree56d884f6a5dbcf8b259247fdad55c9158bd4d865
parentcd6003af5e43bef302c6d2df0d4c3455544b5d21
cifs: have cifsFileInfo hold a reference to a tlink rather than tcon pointer

cifsFileInfo needs a pointer to a tcon, but it doesn't currently hold a
reference to it. Change it to keep a pointer to a tcon_link instead and
hold a reference to it.

That will keep the tcon from being freed until the file is closed.

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/cifsproto.h
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/inode.c
fs/cifs/ioctl.c
fs/cifs/link.c
fs/cifs/readdir.c