Commit 5c850d3
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: 20347fc ("swiotlb: split up the global swiotlb lock")
Signed-off-by: Tianyu Lan <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>1 parent 8419702 commit 5c850d3
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
915 | 922 | | |
916 | 923 | | |
917 | 924 | | |
918 | | - | |
919 | | - | |
920 | 925 | | |
921 | 926 | | |
922 | 927 | | |
923 | 928 | | |
924 | 929 | | |
925 | | - | |
| 930 | + | |
| 931 | + | |
926 | 932 | | |
927 | 933 | | |
928 | 934 | | |
| |||
0 commit comments