xref: /OK3568_Linux_fs/kernel/include/linux/mtd/super.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /* MTD-based superblock handling
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Copyright © 2006 Red Hat, Inc. All Rights Reserved.
5*4882a593Smuzhiyun  * Written by David Howells (dhowells@redhat.com)
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __MTD_SUPER_H__
9*4882a593Smuzhiyun #define __MTD_SUPER_H__
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifdef __KERNEL__
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <linux/mtd/mtd.h>
14*4882a593Smuzhiyun #include <linux/fs.h>
15*4882a593Smuzhiyun #include <linux/mount.h>
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun extern int get_tree_mtd(struct fs_context *fc,
18*4882a593Smuzhiyun 		     int (*fill_super)(struct super_block *sb,
19*4882a593Smuzhiyun 				       struct fs_context *fc));
20*4882a593Smuzhiyun extern void kill_mtd_super(struct super_block *sb);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #endif /* __KERNEL__ */
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #endif /* __MTD_SUPER_H__ */
26