Home
last modified time | relevance | path

Searched refs:max_buf (Results 1 – 2 of 2) sorted by relevance

/fs/cifs/
Dsmb2file.c114 unsigned int max_num, num = 0, max_buf; in smb2_unlock_range() local
128 max_buf = tcon->ses->server->maxBuf; in smb2_unlock_range()
129 if (max_buf < sizeof(struct smb2_lock_element)) in smb2_unlock_range()
133 max_buf = min_t(unsigned int, max_buf, PAGE_SIZE); in smb2_unlock_range()
134 max_num = max_buf / sizeof(struct smb2_lock_element); in smb2_unlock_range()
253 unsigned int max_num, max_buf; in smb2_push_mandatory_locks() local
264 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
265 if (max_buf < sizeof(struct smb2_lock_element)) { in smb2_push_mandatory_locks()
271 max_buf = min_t(unsigned int, max_buf, PAGE_SIZE); in smb2_push_mandatory_locks()
272 max_num = max_buf / sizeof(struct smb2_lock_element); in smb2_push_mandatory_locks()
Dfile.c1087 unsigned int num, max_num, max_buf; in cifs_push_mandatory_locks() local
1100 max_buf = tcon->ses->server->maxBuf; in cifs_push_mandatory_locks()
1101 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1108 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1110 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1421 unsigned int max_num, num, max_buf; in cifs_unlock_range() local
1435 max_buf = tcon->ses->server->maxBuf; in cifs_unlock_range()
1436 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
1441 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
1443 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()