[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140418171222.GC23576@htj.dyndns.org>
Date: Fri, 18 Apr 2014 13:12:22 -0400
From: Tejun Heo <tj@...nel.org>
To: Lai Jiangshan <laijs@...fujitsu.com>
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Jean Delvare <jdelvare@...e.de>,
Monam Agarwal <monamagarwal123@...il.com>,
Jeff Layton <jlayton@...hat.com>,
Andreas Gruenbacher <agruen@...bit.com>,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [PATCH 4/8] idr: fix idr_replace()'s returned error code
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 return values of the idr_replace()
> for these ids should be the same: -ENOENT.
>
> Signed-off-by: Lai Jiangshan <laijs@...fujitsu.com>
Acked-by: Tejun Heo <tj@...nel.org>
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists