]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dax: move dax_pgoff_to_phys from [drivers/dax/] device.c to bus.c
authorJohn Groves <john@groves.net>
Fri, 27 Mar 2026 21:04:08 +0000 (21:04 +0000)
committerIra Weiny <ira.weiny@intel.com>
Mon, 30 Mar 2026 13:20:47 +0000 (08:20 -0500)
commita73cc506ad9f3798d33c78b212149b80d212111a
treeaf6a3e0cf0660a104526340c2460f7181f42e49a
parent7aaa8047eafd0bd628065b15757d9b48c5f9c07d
dax: move dax_pgoff_to_phys from [drivers/dax/] device.c to bus.c

This function will be used by both device.c and fsdev.c, but both are
loadable modules. Moving to bus.c puts it in core and makes it available
to both.

No code changes - just relocated.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: John Groves <john@groves.net>
Link: https://patch.msgid.link/0100019d311c90eb-a582ff97-93ba-49f3-8140-6c5c4bf8bc62-000000@email.amazonses.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
drivers/dax/bus.c
drivers/dax/device.c