]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - fs/aufs/dbgaufs.h
x86/speculation/mds: Add sysfs reporting for MDS
[mirror_ubuntu-bionic-kernel.git] / fs / aufs / dbgaufs.h
1 /*
2 * Copyright (C) 2005-2017 Junjiro R. Okajima
3 *
4 * This program, aufs is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 /*
19 * debugfs interface
20 */
21
22 #ifndef __DBGAUFS_H__
23 #define __DBGAUFS_H__
24
25 #ifdef __KERNEL__
26
27 struct super_block;
28 struct au_sbinfo;
29
30 #ifdef CONFIG_DEBUG_FS
31 /* dbgaufs.c */
32 void dbgaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex);
33 void dbgaufs_brs_add(struct super_block *sb, aufs_bindex_t bindex);
34 void dbgaufs_si_fin(struct au_sbinfo *sbinfo);
35 int dbgaufs_si_init(struct au_sbinfo *sbinfo);
36 void dbgaufs_fin(void);
37 int __init dbgaufs_init(void);
38 #else
39 AuStubVoid(dbgaufs_brs_del, struct super_block *sb, aufs_bindex_t bindex)
40 AuStubVoid(dbgaufs_brs_add, struct super_block *sb, aufs_bindex_t bindex)
41 AuStubVoid(dbgaufs_si_fin, struct au_sbinfo *sbinfo)
42 AuStubInt0(dbgaufs_si_init, struct au_sbinfo *sbinfo)
43 AuStubVoid(dbgaufs_fin, void)
44 AuStubInt0(__init dbgaufs_init, void)
45 #endif /* CONFIG_DEBUG_FS */
46
47 #endif /* __KERNEL__ */
48 #endif /* __DBGAUFS_H__ */