Re: [PATCH 4/8] idr: fix idr_replace()'s returned error code

2014-04-18 Thread Tejun Heo
On Fri, Apr 18, 2014 at 08:49:51PM +0800, Lai Jiangshan wrote: > When the smaller id is not found, idr_replace() returns -ENOENT. > But when the id is bigger enough, idr_replace() returns -EINVAL, > actually there is no difference between these two kinds of ids. > > These are all unallocated id,

[PATCH 4/8] idr: fix idr_replace()'s returned error code

2014-04-18 Thread Lai Jiangshan
When the smaller id is not found, idr_replace() returns -ENOENT. But when the id is bigger enough, idr_replace() returns -EINVAL, actually there is no difference between these two kinds of ids. These are all unallocated id, the return values of the idr_replace() for these ids should be the same:

[PATCH 4/8] idr: fix idr_replace()'s returned error code

2014-04-18 Thread Lai Jiangshan
When the smaller id is not found, idr_replace() returns -ENOENT. But when the id is bigger enough, idr_replace() returns -EINVAL, actually there is no difference between these two kinds of ids. These are all unallocated id, the return values of the idr_replace() for these ids should be the same:

Re: [PATCH 4/8] idr: fix idr_replace()'s returned error code

2014-04-18 Thread Tejun Heo
On Fri, Apr 18, 2014 at 08:49:51PM +0800, Lai Jiangshan wrote: When the smaller id is not found, idr_replace() returns -ENOENT. But when the id is bigger enough, idr_replace() returns -EINVAL, actually there is no difference between these two kinds of ids. These are all unallocated id, the