Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54b96670 authored by Maxim Patlasov's avatar Maxim Patlasov Committed by Miklos Szeredi
Browse files

fuse: rework fuse_do_ioctl()



fuse_do_ioctl() already calculates the number of pages it's going to use. It is
stored in 'num_pages' variable. So the patch simply uses it for allocating
fuse_req.

Signed-off-by: default avatarMaxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent d07f09f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1894,7 +1894,7 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
		num_pages++;
		num_pages++;
	}
	}


	req = fuse_get_req(fc, FUSE_MAX_PAGES_PER_REQ);
	req = fuse_get_req(fc, num_pages);
	if (IS_ERR(req)) {
	if (IS_ERR(req)) {
		err = PTR_ERR(req);
		err = PTR_ERR(req);
		req = NULL;
		req = NULL;