mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
cifs: make cifsFileInfo_get return the cifsFileInfo pointer
Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
This commit is contained in:
parent
e94f7ba124
commit
35ebb4155f
1 changed files with 3 additions and 1 deletions
|
@ -601,9 +601,11 @@ struct cifs_io_parms {
|
|||
* Take a reference on the file private data. Must be called with
|
||||
* cifs_file_list_lock held.
|
||||
*/
|
||||
static inline void cifsFileInfo_get(struct cifsFileInfo *cifs_file)
|
||||
static inline
|
||||
struct cifsFileInfo *cifsFileInfo_get(struct cifsFileInfo *cifs_file)
|
||||
{
|
||||
++cifs_file->count;
|
||||
return cifs_file;
|
||||
}
|
||||
|
||||
void cifsFileInfo_put(struct cifsFileInfo *cifs_file);
|
||||
|
|
Loading…
Reference in a new issue