projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07f09f
)
fuse: rework fuse_do_ioctl()
author
Maxim Patlasov
<mpatlasov@parallels.com>
Fri, 26 Oct 2012 15:49:13 +0000
(19:49 +0400)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Thu, 24 Jan 2013 15:21:26 +0000
(16:21 +0100)
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: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fuse/file.c
b/fs/fuse/file.c
index b9972502f43a9484d5c6747e44b3e63a89e6e5dc..fdb5b33198aa92982bf8061441962dc8635b40a3 100644
(file)
--- a/
fs/fuse/file.c
+++ b/
fs/fuse/file.c
@@
-1894,7
+1894,7
@@
long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
num_pages++;
}
- req = fuse_get_req(fc,
FUSE_MAX_PAGES_PER_REQ
);
+ req = fuse_get_req(fc,
num_pages
);
if (IS_ERR(req)) {
err = PTR_ERR(req);
req = NULL;