diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:26 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:26 -0400 |
commit | 4ad6504453644f57f7b6cf9c7bfc9d1372c5ad15 (patch) | |
tree | 21618335408bfeda325e151f3d3d1733cb38761c /fs/cifs/smb1ops.c | |
parent | f0df737ee820ec62055baf2b28e24db4fb1ad71d (diff) |
CIFS: Move guery file info code to ops struct
and make cifs_get_file_info(_unix) calls static.
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index bb758476e139..cbbc122a501a 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -489,6 +489,13 @@ cifs_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, | |||
489 | CIFS_MOUNT_MAP_SPECIAL_CHR); | 489 | CIFS_MOUNT_MAP_SPECIAL_CHR); |
490 | } | 490 | } |
491 | 491 | ||
492 | static int | ||
493 | cifs_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, | ||
494 | struct cifs_fid *fid, FILE_ALL_INFO *data) | ||
495 | { | ||
496 | return CIFSSMBQFileInfo(xid, tcon, fid->netfid, data); | ||
497 | } | ||
498 | |||
492 | static char * | 499 | static char * |
493 | cifs_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb, | 500 | cifs_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb, |
494 | struct cifs_tcon *tcon) | 501 | struct cifs_tcon *tcon) |
@@ -672,6 +679,7 @@ struct smb_version_operations smb1_operations = { | |||
672 | .qfs_tcon = cifs_qfs_tcon, | 679 | .qfs_tcon = cifs_qfs_tcon, |
673 | .is_path_accessible = cifs_is_path_accessible, | 680 | .is_path_accessible = cifs_is_path_accessible, |
674 | .query_path_info = cifs_query_path_info, | 681 | .query_path_info = cifs_query_path_info, |
682 | .query_file_info = cifs_query_file_info, | ||
675 | .get_srv_inum = cifs_get_srv_inum, | 683 | .get_srv_inum = cifs_get_srv_inum, |
676 | .build_path_to_root = cifs_build_path_to_root, | 684 | .build_path_to_root = cifs_build_path_to_root, |
677 | .echo = CIFSSMBEcho, | 685 | .echo = CIFSSMBEcho, |