[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] [PATCH 07/10] idr: Rename idr_alloc() -> idr_alloc_range()




On 7/5/13 10:08 PM, "Kent Overstreet" <kmo daterainc com> wrote:

>From: Kent Overstreet <koverstreet google com>
>
>Then also add an idr_alloc() wrapper, without the start/end arguments -
>for consistency with the ida interfaces.
>
>Signed-off-by: Kent Overstreet <koverstreet google com>
>Cc: Andrew Morton <akpm linux-foundation org>
>Cc: Tejun Heo <tj kernel org>
>Cc: FUJITA Tomonori <fujita tomonori lab ntt co jp>
>Cc: Jens Axboe <axboe kernel dk>
>Cc: Chas Williams <chas cmf nrl navy mil>
>Cc: Lars Ellenberg <drbd-dev lists linbit com>
>Cc: Dan Williams <djbw fb com>
[..]
>diff --git a/drivers/dca/dca-sysfs.c b/drivers/dca/dca-sysfs.c
>index 126cf29..effda66 100644
>--- a/drivers/dca/dca-sysfs.c
>+++ b/drivers/dca/dca-sysfs.c
>@@ -58,7 +58,7 @@ int dca_sysfs_add_provider(struct dca_provider *dca,
>struct device *dev)
> 	idr_preload(GFP_KERNEL);
> 	spin_lock(&dca_idr_lock);
> 
>-	ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT);
>+	ret = idr_alloc(&dca_idr, dca, GFP_NOWAIT);
> 	if (ret >= 0)
> 		dca->id = ret;

DCA portion Acked-by: Dan Williams <djbw fb com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]