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

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

 




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

>From: Kent Overstreet <koverstreet@xxxxxxxxxx>
>
>Then also add an idr_alloc() wrapper, without the start/end arguments -
>for consistency with the ida interfaces.
>
>Signed-off-by: Kent Overstreet <koverstreet@xxxxxxxxxx>
>Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>Cc: Tejun Heo <tj@xxxxxxxxxx>
>Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
>Cc: Jens Axboe <axboe@xxxxxxxxx>
>Cc: Chas Williams <chas@xxxxxxxxxxxxxxxx>
>Cc: Lars Ellenberg <drbd-dev@xxxxxxxxxxxxxxxx>
>Cc: Dan Williams <djbw@xxxxxx>
[..]
>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@xxxxxx>


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux