diff options
author | Jan Kara <[email protected]> | 2023-09-27 11:34:08 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-10-28 13:29:16 +0200 |
commit | 841dd789b8625eb9288aaa2be9f10872e6622033 (patch) | |
tree | 68ccf22ca8afac4616f8135532e6ad52d12118c9 /tools/perf/scripts/python/syscall-counts.py | |
parent | e719b4d156749f02eafed31a3c515f2aa9dcc72a (diff) |
block: Use bdev_open_by_dev() in blkdev_open()
Convert blkdev_open() to use bdev_open_by_dev(). To be able to propagate
handle from blkdev_open() to blkdev_release() we need to stop using
existence of file->private_data to determine exclusive block device
opens. Use bdev_handle->mode for this purpose since file->f_flags
isn't usable for this (O_EXCL is cleared from the flags during open).
Acked-by: Christoph Hellwig <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions