[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1bm0ow6iv.fsf@oracle.com>
Date: Mon, 29 Apr 2019 22:50:32 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Marcos Paulo de Souza <marcos.souza.org@...il.com>
Cc: linux-block@...r.kernel.org, Jens Axboe <axboe@...nel.dk>,
Hannes Reinecke <hare@...e.com>,
Omar Sandoval <osandov@...com>, Ming Lei <ming.lei@...hat.com>,
Damien Le Moal <damien.lemoal@....com>,
Bart Van Assche <bvanassche@....org>,
Greg Edwards <gedwards@....com>,
linux-kernel@...r.kernel.org (open list)
Subject: Re: [PATCH 1/2] blkdev.h: Introduce size_to_sectors hlper function
Hi Marco,
> +static inline sector_t size_to_sectors(long long size)
> +{
> + return size >> SECTOR_SHIFT;
> +}
> +
FWIW, in SCSI we have:
logical_to_sectors()
logical_to_bytes()
bytes_to_logical()
sectors_to_logical()
I'm not attached to "bytes" in any way but it would be nice to be
consistent.
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists