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
fs/cifs
|
@ -601,9 +601,11 @@ struct cifs_io_parms {
|
||||||
* Take a reference on the file private data. Must be called with
|
* Take a reference on the file private data. Must be called with
|
||||||
* cifs_file_list_lock held.
|
* 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;
|
++cifs_file->count;
|
||||||
|
return cifs_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cifsFileInfo_put(struct cifsFileInfo *cifs_file);
|
void cifsFileInfo_put(struct cifsFileInfo *cifs_file);
|
||||||
|
|
Loading…
Reference in New Issue