]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: make add_partition() return pointer to hd_struct
authorTejun Heo <tj@kernel.org>
Mon, 10 Nov 2008 06:29:58 +0000 (15:29 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 18 Nov 2008 14:08:56 +0000 (15:08 +0100)
commitba32929a91fe2c0628f5be62d1597b379c8d3062
tree09ea54ed2d2299d25b92fee6a6dde4d7527a3d37
parenteb60fa1066622ddb2278732cf61e0c4544e82c6f
block: make add_partition() return pointer to hd_struct

Make add_partition() return pointer to the new hd_struct on success
and ERR_PTR() value on failure.  This change will be used to fix md
autodetection bug.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/ioctl.c
fs/partitions/check.c
include/linux/genhd.h