Messages in this thread | | | Subject | Re: [PATCH 1/2] blkdev.h: Introduce size_to_sectors hlper function | From | "Martin K. Petersen" <> | Date | Mon, 29 Apr 2019 22:50:32 -0400 |
| |
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
| |