0001
0002 #ifndef _LINUX_RAMFS_H
0003 #define _LINUX_RAMFS_H
0004
0005 #include <linux/fs_parser.h> // bleh...
0006
0007 struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
0008 umode_t mode, dev_t dev);
0009 extern int ramfs_init_fs_context(struct fs_context *fc);
0010
0011 #ifdef CONFIG_MMU
0012 static inline int
0013 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
0014 {
0015 return 0;
0016 }
0017 #else
0018 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
0019 #endif
0020
0021 extern const struct fs_parameter_spec ramfs_fs_parameters[];
0022 extern const struct file_operations ramfs_file_operations;
0023 extern const struct vm_operations_struct generic_file_vm_ops;
0024
0025 #endif