From: Alex Elder Date: Fri, 26 Oct 2012 04:34:41 +0000 (-0500) Subject: rbd: remove options args from rbd_add_parse_args() X-Git-Tag: v3.8-rc1~21^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f28e565a1b15eef62618db4011d9e320089a4214;p=pandora-kernel.git rbd: remove options args from rbd_add_parse_args() They "options" argument to rbd_add_parse_args() (and it's partner options_size) is now only needed within the function, so there's no need to have the caller allocate and pass the options buffer. Just allocate the options buffer within the function using dup_token(). Also distinguish between failures due to failed memory allocation and failing because a required argument was missing. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed