Re: [PATCHv2 09/10] zram: return zram device_id value from zram_add()

Minchan Kim
2015-04-23T02:41:49Z

On Thu, Apr 16, 2015 at 08:55:55PM +0900, Sergey Senozhatsky wrote:
> zram_add requires valid device_id to be provided, that can be a bit
> inconvenient. Change zram_add() to return negative value upon new device
> creation failure, and device_id (>= 0) value otherwise.
>
> This prepares zram_add to perform automatic device_id assignment. New
> device_id will be returned back to user-space (so user can reference that
> device as /dev/zramX).
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>

--
Kind regards,
Minchan Kim