]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] move close processing from cifs_close to cifsFileInfo_put
authorSteve French <sfrench@us.ibm.com>
Thu, 21 Oct 2010 22:46:14 +0000 (22:46 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 21 Oct 2010 22:46:14 +0000 (22:46 +0000)
commit2b7366fcd7ba2978fe55819d716f32979790fc7e
tree1ebd74be361b7e34158974242a2303f7833c983d
parentfc245c5e48150c4534c499c41742e6129fb964a7
[CIFS] move close processing  from cifs_close to cifsFileInfo_put

Now that it's feasible for a cifsFileInfo to outlive the filp under
which it was created, move the close processing into cifsFileInfo_put.

This means that the last user of the filehandle always does the actual
on the wire close call. This also allows us to get rid of the closePend
flag from cifsFileInfo. If we have an active reference to the file
then it's never going to have a close pending.

cifs_close is converted to simply put the filehandle.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/misc.c