Skip to content

Commit 8098179

Browse files
ZhangGuoDongsmfrench
authored andcommitted
smb/client: remove unused SMB311_posix_query_info()
It is currently unused, as now we are doing compounding instead (see smb2_query_path_info()). Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn> Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 9621b99 commit 8098179

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

fs/smb/client/smb2pdu.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3989,24 +3989,6 @@ int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
39893989
NULL);
39903990
}
39913991

3992-
#if 0
3993-
/* currently unused, as now we are doing compounding instead (see smb311_posix_query_path_info) */
3994-
int
3995-
SMB311_posix_query_info(const unsigned int xid, struct cifs_tcon *tcon,
3996-
u64 persistent_fid, u64 volatile_fid,
3997-
struct smb311_posix_qinfo *data, u32 *plen)
3998-
{
3999-
size_t output_len = sizeof(struct smb311_posix_qinfo) +
4000-
(sizeof(struct smb_sid) * 2) + (PATH_MAX * 2);
4001-
*plen = 0;
4002-
4003-
return query_info(xid, tcon, persistent_fid, volatile_fid,
4004-
SMB_FIND_FILE_POSIX_INFO, SMB2_O_INFO_FILE, 0,
4005-
output_len, sizeof(struct smb311_posix_qinfo), (void **)&data, plen);
4006-
/* Note caller must free "data" (passed in above). It may be allocated in query_info call */
4007-
}
4008-
#endif
4009-
40103992
int
40113993
SMB2_query_acl(const unsigned int xid, struct cifs_tcon *tcon,
40123994
u64 persistent_fid, u64 volatile_fid,

fs/smb/client/smb2proto.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ int SMB2_flush_init(const unsigned int xid, struct smb_rqst *rqst,
167167
struct cifs_tcon *tcon, struct TCP_Server_Info *server,
168168
u64 persistent_fid, u64 volatile_fid);
169169
void SMB2_flush_free(struct smb_rqst *rqst);
170-
int SMB311_posix_query_info(const unsigned int xid, struct cifs_tcon *tcon,
171-
u64 persistent_fid, u64 volatile_fid,
172-
struct smb311_posix_qinfo *data, u32 *plen);
173170
int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
174171
u64 persistent_fid, u64 volatile_fid,
175172
struct smb2_file_all_info *data);

0 commit comments

Comments
 (0)