mm/hmm.c: remove superfluous RCU protection around radix tree lookup
[linux/fpc-iii.git] / arch / arm64 / mm / ptdump_debugfs.c
blob02b18f8b2905d6ae5b015772ea6d02ff7443b3a6
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/debugfs.h>
3 #include <linux/seq_file.h>
5 #include <asm/ptdump.h>
7 static int ptdump_show(struct seq_file *m, void *v)
9 struct ptdump_info *info = m->private;
10 ptdump_walk_pgd(m, info);
11 return 0;
14 static int ptdump_open(struct inode *inode, struct file *file)
16 return single_open(file, ptdump_show, inode->i_private);
19 static const struct file_operations ptdump_fops = {
20 .open = ptdump_open,
21 .read = seq_read,
22 .llseek = seq_lseek,
23 .release = single_release,
26 int ptdump_debugfs_register(struct ptdump_info *info, const char *name)
28 struct dentry *pe;
29 pe = debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
30 return pe ? 0 : -ENOMEM;