]> git.openpandora.org Git - pandora-kernel.git/commitdiff
cifs: Rename and cleanup open_query_close_cifs_symlink()
authorSachin Prabhu <sprabhu@redhat.com>
Mon, 25 Nov 2013 17:09:49 +0000 (17:09 +0000)
committerSteve French <smfrench@gmail.com>
Mon, 20 Jan 2014 06:13:51 +0000 (00:13 -0600)
Rename open_query_close_cifs_symlink to cifs_query_mf_symlink() to make
the name more consistent with other protocol version specific functions.

We also pass tcon as an argument to the function. This is already
available in the calling functions and we can avoid having to make an
unnecessary lookup.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/link.c
fs/cifs/smb1ops.c

index f918a998a08758caac54bf8205cd7da7705c1efc..fba4d1341f88977416cd0bbf982591e7df3c2bdc 100644 (file)
@@ -370,8 +370,9 @@ struct smb_version_operations {
        void (*new_lease_key)(struct cifs_fid *);
        int (*generate_signingkey)(struct cifs_ses *);
        int (*calc_signature)(struct smb_rqst *, struct TCP_Server_Info *);
-       int (*query_mf_symlink)(const unsigned char *, char *, unsigned int *,
-                               struct cifs_sb_info *, unsigned int);
+       int (*query_mf_symlink)(unsigned int, struct cifs_tcon *,
+                               struct cifs_sb_info *, const unsigned char *,
+                               char *, unsigned int *);
        /* if we can do cache read operations */
        bool (*is_read_op)(__u32);
        /* set oplock level for the inode */
index 2c29db6a247e4788256461100bed11ac79648d26..10b9ab1d1ae972845b191c16c753cd822193cb57 100644 (file)
@@ -496,7 +496,8 @@ void cifs_writev_complete(struct work_struct *work);
 struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages,
                                                work_func_t complete);
 void cifs_writedata_release(struct kref *refcount);
-int open_query_close_cifs_symlink(const unsigned char *path, char *pbuf,
-                       unsigned int *pbytes_read, struct cifs_sb_info *cifs_sb,
-                       unsigned int xid);
+int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
+                         struct cifs_sb_info *cifs_sb,
+                         const unsigned char *path, char *pbuf,
+                         unsigned int *pbytes_read);
 #endif                 /* _CIFSPROTO_H */
diff --cc fs/cifs/link.c
Simple merge
Simple merge