Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35ebb415 authored by Jeff Layton's avatar Jeff Layton
Browse files

cifs: make cifsFileInfo_get return the cifsFileInfo pointer

parent e94f7ba1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);