Skip to content
Commit 5c850d31 authored by Tianyu Lan's avatar Tianyu Lan Committed by Christoph Hellwig
Browse files

swiotlb: fix passing local variable to debugfs_create_ulong()

Debugfs node will be run-timely checked and so local variable
should be not passed to debugfs_create_ulong(). Fix it via
debugfs_create_file() to create io_tlb_used node and calculate
used io tlb number with fops_io_tlb_used attribute.

Fixes: 20347fca

 ("swiotlb: split up the global swiotlb lock")
Signed-off-by: default avatarTianyu Lan <tiala@microsoft.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 84197024
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment