]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: make ceph_parse_options() return a pointer
authorAlex Elder <elder@dreamhost.com>
Tue, 24 Jan 2012 16:08:36 +0000 (10:08 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:47 +0000 (10:47 -0500)
commit7a2df344cb75348c44fa04e35b96d48897ac9a9d
tree248a6e7bf259bb849f885f1ff4a82be74ab4913b
parentb101b3e7a86bc37002d7c0efce89c3de75990a27
rbd: make ceph_parse_options() return a pointer

ceph_parse_options() takes the address of a pointer as an argument
and uses it to return the address of an allocated structure if
successful.  With this interface is not evident at call sites that
the pointer is always initialized.  Change the interface to return
the address instead (or a pointer-coded error code) to make the
validity of the returned pointer obvious.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
drivers/block/rbd.c
fs/ceph/super.c
include/linux/ceph/libceph.h
net/ceph/ceph_common.c