aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2010-10-21 18:46:14 -0400
committerSteve French <sfrench@us.ibm.com>2010-10-21 18:46:14 -0400
commitcdff08e76612e53580139653403aedea979aa639 (patch)
tree1ebd74be361b7e34158974242a2303f7833c983d /fs/cifs/cifsglob.h
parent3f9bcca7820a6711307b6499952b13cfcfc31dd6 (diff)
[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>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 28337cba0295..3365e77f6f24 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -393,7 +393,6 @@ struct cifsFileInfo {
393 struct tcon_link *tlink; 393 struct tcon_link *tlink;
394 struct mutex lock_mutex; 394 struct mutex lock_mutex;
395 struct list_head llist; /* list of byte range locks we have. */ 395 struct list_head llist; /* list of byte range locks we have. */
396 bool closePend:1; /* file is marked to close */
397 bool invalidHandle:1; /* file closed via session abend */ 396 bool invalidHandle:1; /* file closed via session abend */
398 bool oplock_break_cancelled:1; 397 bool oplock_break_cancelled:1;
399 atomic_t count; /* reference count */ 398 atomic_t count; /* reference count */