Home
last modified time | relevance | path

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

/net/core/
Dskmsg.c252 int trim = msg->sg.size - len; in sk_msg_trim() local
255 if (trim <= 0) { in sk_msg_trim()
256 WARN_ON(trim < 0); in sk_msg_trim()
263 trim >= msg->sg.data[i].length) { in sk_msg_trim()
264 trim -= msg->sg.data[i].length; in sk_msg_trim()
267 if (!trim) in sk_msg_trim()
271 msg->sg.data[i].length -= trim; in sk_msg_trim()
272 sk_mem_uncharge(sk, trim); in sk_msg_trim()