On Thu, Aug 22, 2024 at 04:35:54AM +0100, Pavel Begunkov wrote: > In preparation to further changes extract a helper function out of > blk_ioctl_discard() that validates if it's allowed to do a write-like > operation for the given range. This isn't about a write, it is about a discard.