summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2026-10-19 14:56:11 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2026-10-19 14:56:11 +0200
commitc87dd99b6d0fe07e836c1593c03e8174029c66f4 (patch)
tree66b2be6ecc1cb9f8e72b7e53d796d988be0351d5 /tools/lib/python
parentbf4ccbaad8bdff8c90fd290ed6135b63f89ee8a7 (diff)
dax: add fsdev_dax_from_file()
If the file is a fsdev_dax open, take the dax_dev from the device inode's i_cdev. Return with a reference grabbed on the private dax inode. Make dax_dev_get() static again (internal to super.c for alloc_dax), export fsdev_dax_from_file() instead. This fix is in response to a Sashiko review, and some subsequent analysis. About the 'fixes' tag: this removes the export of dax_dev_get(), which was flawed, and replaces it with fsdev_dax_from_file(). It feels like the fixes tag makes sense for correcting an ABI error. Fixes: 2ae624d5a555d ("dax: export dax_dev_get()") Originally-by: John Groves <john@groves.net> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Gregory Price (Meta) <gourry@gourry.net> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions