Messages in this thread | | | From | Dan Williams <> | Date | Thu, 17 Dec 2020 13:49:11 -0800 | Subject | Re: [PATCH 1/1] device-dax: delete a redundancy check in dev_dax_validate_align() |
| |
On Fri, Nov 20, 2020 at 1:27 AM Leizhen (ThunderTown) <thunder.leizhen@huawei.com> wrote: > > > > On 2020/11/20 17:20, Zhen Lei wrote: > > After we have done the alignment check for the length of each range, the > > alignment check for dev_dax_size(dev_dax) is no longer needed, because it > > get the sum of the length of each range. > > For example: > x/M + y/M = (x + y)/M > If x/M is a integer and y/M is also a integer, then (x + y)/M must be a integer. >
True... I was going to say that the different error messages might be useful, but those are debug statements anyways, so I'll apply this.
| |