Re: [PATCHv2 09/10] zram: return zram device_id value from zram_add()
From: Minchan Kim
Date: Wed Apr 22 2015 - 22:41:53 EST
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@xxxxxxxxx>
Acked-by: Minchan Kim <minchan@xxxxxxxxxx>
--
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/