diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-03-23 14:40:56 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2012-03-23 14:40:56 -0400 |
commit | 35ebb4155f2f9d5580679d368aea81a5933db481 (patch) | |
tree | fd5456e4ed00443c92c2bd5c8c05a2d4baf03701 /fs | |
parent | e94f7ba124bfbd3898f620c46891ebcfb9cf20d0 (diff) |
cifs: make cifsFileInfo_get return the cifsFileInfo pointer
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifsglob.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 79eba5a15e80..d7e39b0de5b0 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -601,9 +601,11 @@ struct cifs_io_parms { | |||
601 | * Take a reference on the file private data. Must be called with | 601 | * Take a reference on the file private data. Must be called with |
602 | * cifs_file_list_lock held. | 602 | * cifs_file_list_lock held. |
603 | */ | 603 | */ |
604 | static inline void cifsFileInfo_get(struct cifsFileInfo *cifs_file) | 604 | static inline |
605 | struct cifsFileInfo *cifsFileInfo_get(struct cifsFileInfo *cifs_file) | ||
605 | { | 606 | { |
606 | ++cifs_file->count; | 607 | ++cifs_file->count; |
608 | return cifs_file; | ||
607 | } | 609 | } |
608 | 610 | ||
609 | void cifsFileInfo_put(struct cifsFileInfo *cifs_file); | 611 | void cifsFileInfo_put(struct cifsFileInfo *cifs_file); |