This reverts commit
d7e95bf4ed7e ("net/rds: Reduce memory footprint in
rds_sendmsg") because RDS has implemented N sge to support large fragment
size, with each sge of PAGE_SIZE.
Orabug:
26770234
Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Tested-by: Shih-Yu Huang <shih-yu.huang@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
/* jump straight to allocation if we're trying for a huge page */
if (bytes >= PAGE_SIZE) {
if (large_page) {
- size = min_t(unsigned int, bytes, RDS_MAX_FRAG_SIZE);
- order = get_order(size);
+ order = get_order(bytes);
+ size = bytes;
} else {
order = 0;
size = PAGE_SIZE;