summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-10-15 21:34:04 +0200
committerSteve French <sfrench@us.ibm.com>2010-10-18 03:32:05 +0200
commitb33879aa834ebe03ced3dca4e3b822bd8894a474 (patch)
tree9475bb683f03180a5fe7909d4182bb5273f5d7a6 /fs/cifs/cifsglob.h
parentcifs: convert GlobalSMBSeslock from a rwlock to regular spinlock (diff)
downloadlinux-b33879aa834ebe03ced3dca4e3b822bd8894a474.tar.xz
linux-b33879aa834ebe03ced3dca4e3b822bd8894a474.zip
cifs: move cifsFileInfo_put to file.c
...and make it non-inlined in preparation for the move of most of cifs_close to it. 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.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 53899a8d7c4a..18ee0adda306 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -408,15 +408,7 @@ static inline void cifsFileInfo_get(struct cifsFileInfo *cifs_file)
atomic_inc(&cifs_file->count);
}
-/* Release a reference on the file private data */
-static inline void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
-{
- if (atomic_dec_and_test(&cifs_file->count)) {
- cifs_put_tlink(cifs_file->tlink);
- dput(cifs_file->dentry);
- kfree(cifs_file);
- }
-}
+void cifsFileInfo_put(struct cifsFileInfo *cifs_file);
/*
* One of these for each file inode