Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git] / fs / aufs / dbgaufs.h
1 /*
2  * Copyright (C) 2005-2012 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, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18
19 /*
20  * debugfs interface
21  */
22
23 #ifndef __DBGAUFS_H__
24 #define __DBGAUFS_H__
25
26 #ifdef __KERNEL__
27
28 struct super_block;
29 struct au_sbinfo;
30
31 #ifdef CONFIG_DEBUG_FS
32 /* dbgaufs.c */
33 void dbgaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex);
34 void dbgaufs_brs_add(struct super_block *sb, aufs_bindex_t bindex);
35 void dbgaufs_si_fin(struct au_sbinfo *sbinfo);
36 int dbgaufs_si_init(struct au_sbinfo *sbinfo);
37 void dbgaufs_fin(void);
38 int __init dbgaufs_init(void);
39 #else
40 AuStubVoid(dbgaufs_brs_del, struct super_block *sb, aufs_bindex_t bindex)
41 AuStubVoid(dbgaufs_brs_add, struct super_block *sb, aufs_bindex_t bindex)
42 AuStubVoid(dbgaufs_si_fin, struct au_sbinfo *sbinfo)
43 AuStubInt0(dbgaufs_si_init, struct au_sbinfo *sbinfo)
44 AuStubVoid(dbgaufs_fin, void)
45 AuStubInt0(__init dbgaufs_init, void)
46 #endif /* CONFIG_DEBUG_FS */
47
48 #endif /* __KERNEL__ */
49 #endif /* __DBGAUFS_H__ */