Home
last modified time | relevance | path

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

/fs/cifs/
Dsmb2file.c120 unsigned int max_num, num = 0, max_buf; in smb2_unlock_range() local
134 max_buf = tcon->ses->server->maxBuf; in smb2_unlock_range()
135 if (max_buf < sizeof(struct smb2_lock_element)) in smb2_unlock_range()
139 max_buf = min_t(unsigned int, max_buf, PAGE_SIZE); in smb2_unlock_range()
140 max_num = max_buf / sizeof(struct smb2_lock_element); in smb2_unlock_range()
264 unsigned int max_num, max_buf; in smb2_push_mandatory_locks() local
275 max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; in smb2_push_mandatory_locks()
276 if (max_buf < sizeof(struct smb2_lock_element)) { in smb2_push_mandatory_locks()
282 max_buf = min_t(unsigned int, max_buf, PAGE_SIZE); in smb2_push_mandatory_locks()
283 max_num = max_buf / sizeof(struct smb2_lock_element); in smb2_push_mandatory_locks()
Dfile.c1185 unsigned int num, max_num, max_buf; in cifs_push_mandatory_locks() local
1200 max_buf = tcon->ses->server->maxBuf; in cifs_push_mandatory_locks()
1201 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1208 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1210 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1530 unsigned int max_num, num, max_buf; in cifs_unlock_range() local
1544 max_buf = tcon->ses->server->maxBuf; in cifs_unlock_range()
1545 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
1550 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
1552 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()