• Miklos Szeredi's avatar
    fuse: introduce fuse_simple_request() helper · 7078187a
    Miklos Szeredi authored
    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: default avatarMiklos Szeredi <mszeredi@suse.cz>
    7078187a
dev.c 49.4 KB