]> git.baikalelectronics.ru Git - kernel.git/commit
device-dax: delete a redundancy check in dev_dax_validate_align()
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 20 Nov 2020 09:20:57 +0000 (17:20 +0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 17 Dec 2020 21:52:28 +0000 (13:52 -0800)
commit25a329ffc1412508e9e5f36958baf6973a53d6e5
tree1da7900e165214933e8780b5734b42b08c7233c0
parent37085f5ae9cced83d23e3066d2117dc34dff2f38
device-dax: delete a redundancy check in dev_dax_validate_align()

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.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20201120092057.2144-1-thunder.leizhen@huawei.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.c