> +static inline enum pr_type scsi_pr_type_to_block(enum scsi_pr_type type) > +{ > + switch (type) { > + case SCSI_PR_WRITE_EXCLUSIVE: > + return PR_WRITE_EXCLUSIVE; > + case SCSI_PR_EXCLUSIVE_ACCESS: > + return PR_EXCLUSIVE_ACCESS; > + case SCSI_PR_WRITE_EXCLUSIVE_REG_ONLY: > + return PR_WRITE_EXCLUSIVE_REG_ONLY; > + case SCSI_PR_EXCLUSIVE_ACCESS_REG_ONLY: > + return PR_EXCLUSIVE_ACCESS_REG_ONLY; > + case SCSI_PR_WRITE_EXCLUSIVE_ALL_REGS: > + return PR_WRITE_EXCLUSIVE_ALL_REGS; > + case SCSI_PR_EXCLUSIVE_ACCESS_ALL_REGS: > + return PR_EXCLUSIVE_ACCESS_ALL_REGS; > + default: > + return 0; > + } > +} > + same here as previous comment, unless there is strong reason not to do that ... -ck -- dm-devel mailing list dm-devel@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/dm-devel