]> git.baikalelectronics.ru Git - kernel.git/commit
fsdax: simplify the pgoff calculation
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:48 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:52 +0000 (08:58 -0800)
commit55918d17156b12a7eedffe1835a36ee3ebb60f3f
tree61e1603ff08e1f39bf0b6baa2425790ab060aa1e
parent886fac67a4d542905e6d17c26a24108fc8d0712c
fsdax: simplify the pgoff calculation

Replace the two steps of dax_iomap_sector and bdev_dax_pgoff with a
single dax_iomap_pgoff helper that avoids lots of cumbersome sector
conversions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-15-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/super.c
fs/dax.c
include/linux/dax.h