Paulo Alcantara d406d26745 cifs: skip alloc when request has no pages
When smb3_init_transform_rq() was being called with requests (@old_rq)
which had no pages, it was unnecessarily allocating a single page for
every request in @new_rq.

Fix this by skipping page array allocation when requests have no pages
(e.g. !smb_rqst::rq_npages).

Also get rid of deprecated kmap() and use kmap_local_page() instead
while we're at it.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
2022-12-08 09:51:53 -06:00
..
2022-10-19 17:57:51 -05:00
2022-10-18 11:33:43 -05:00
2022-12-08 09:51:53 -06:00
2022-01-19 11:21:08 -06:00
2022-11-19 14:27:37 -06:00
2022-10-14 12:35:25 -05:00
2022-10-10 09:10:28 -07:00
2021-04-25 16:28:23 -05:00