From: Miklos Szeredi Date: Fri, 12 Dec 2014 08:49:05 +0000 (+0100) Subject: fuse: introduce fuse_simple_request() helper X-Git-Tag: omap-for-v3.19/fixes-rc1~59^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7078187a795f862465325bcadf3070867c0cb5f8;p=pandora-kernel.git fuse: introduce fuse_simple_request() helper The following pattern is repeated many times: req = fuse_get_req_nopages(fc); /* Initialize req->(in|out).args */ fuse_request_send(fc, req); err = req->out.h.error; fuse_put_request(req); Create a new replacement helper: /* Initialize args */ err = fuse_simple_request(fc, &args); In addition to reducing the code size, this will ease moving from the complex arg-based to a simpler page-based I/O on the fuse device. Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed