Skip to content

Commit

Permalink
cifs: make cifsFileInfo_get return the cifsFileInfo pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
  • Loading branch information
Jeff Layton committed Mar 23, 2012
1 parent e94f7ba commit 35ebb41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/cifs/cifsglob.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35ebb41

Please sign in to comment.