[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84144f020812190559y2bf4ac9am695f3d35941fa7ed@mail.gmail.com>
Date: Fri, 19 Dec 2008 15:59:53 +0200
From: "Pekka Enberg" <penberg@...helsinki.fi>
To: "Guennadi Liakhovetski" <lg@...x.de>
Cc: "Johannes Weiner" <hannes@...xchg.org>,
linux-kernel@...r.kernel.org,
"Andrew Morton" <akpm@...ux-foundation.org>
Subject: Re: [PATCH] bitmap: fix bitmap_find_free_region()
On Fri, 19 Dec 2008, Johannes Weiner wrote:
>> And return -ENOSPC?
On Fri, Dec 19, 2008 at 3:18 PM, Guennadi Liakhovetski <lg@...x.de> wrote:
> So, you agree that a check should be added to bitmap_find_free_region()?
> As for details - to warn or not to warn and what error code to return,
> that can be discussed, although "No space left on device" doesn't seem to
> fit very well IMHO:-)
Yeah, but ENOMEM, on the other had, is mostly for out-of-memory
conditions so EINVAL might be more appropriate.
--
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