Skip to content
Commit 8a7aa286 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: allocate page array more efficiently



When allocating page array for a request the array for the page pointers
and the array for page descriptors are allocated by two separate kmalloc()
calls.  Merge these into one allocation.

Also instead of initializing the request and the page arrays with memset(),
use the zeroing allocation variants.

Reserved requests never carry pages (page array size is zero). Make that
explicit by initializing the page array pointers to NULL and make sure the
assumption remains true by adding a WARN_ON().

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent ab2257e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment