On 2/24/2023 9:44 AM, Mike Christie wrote: > The next patch adds support to report the reservation type, so we need to > be able to convert from the NVMe PR value we get from the device to the > linux block layer PR value that will be returned to callers. To prepare > for that, this patch adds a nvme_pr_type enum and renames the nvme_pr_type > function. > > Signed-off-by: Mike Christie <michael.christie@xxxxxxxxxx> > --- > > Note for Chaitanya, Keith and Bart. For these patches where we convert > between block and nvme pr values, it seemed like Chaitanya and Keith > didn't have a strong preference. Bart had the suggestion to keep the > switch and drop the default so the compiler can warn us if new types > are added. This seemed like a nice benefit so I went that way. > Looks good. Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx> -ck