]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
cifs: move cifsFileInfo_put to file.c
authorJeff Layton <jlayton@redhat.com>
Fri, 15 Oct 2010 19:34:04 +0000 (15:34 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 18 Oct 2010 01:32:05 +0000 (01:32 +0000)
...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>
fs/cifs/cifsglob.h
fs/cifs/file.c

index 53899a8d7c4a7f8ba903109aaf3fedc54704788d..18ee0adda306752efbcef0d8e8671f8e48e7442b 100644 (file)
@@ -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
index 26048dc9069aec7537e4062697e595e588e13c80..a3634e43bd4f2346923139955cc3c8b975980292 100644 (file)
@@ -266,6 +266,16 @@ cifs_new_fileinfo(__u16 fileHandle, struct file *file,
        return pCifsFile;
 }
 
+/* Release a reference on the file private data */
+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);
+       }
+}
+
 int cifs_open(struct inode *inode, struct file *file)
 {
        int rc = -EACCES;