blob: ecc730977a5ae9372b5605e1879ec1b4a146b246 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_RAMFS_H
2#define _LINUX_RAMFS_H
3
Dmitry Monakhov454abaf2010-03-04 17:32:18 +03004struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
Al Viro632861f2011-07-26 03:16:55 -04005 umode_t mode, dev_t dev);
Al Viro3c26ff62010-07-25 11:46:36 +04006extern struct dentry *ramfs_mount(struct file_system_type *fs_type,
7 int flags, const char *dev_name, void *data);
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Andrew Morton250297e2013-04-29 15:06:12 -07009#ifdef CONFIG_MMU
10static inline int
11ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
12{
13 return 0;
14}
15#else
Nick Piggin4b19de62008-10-02 14:50:16 -070016extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
David Howells642fb4d2006-01-06 00:11:41 -080017#endif
18
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080019extern const struct file_operations ramfs_file_operations;
Alexey Dobriyanf0f37e22009-09-27 22:29:37 +040020extern const struct vm_operations_struct generic_file_vm_ops;
Rob Landley57f150a2013-09-11 14:26:10 -070021extern int __init init_ramfs_fs(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Peter Korsgaardda5e4ef2010-03-16 21:55:21 +010023int ramfs_fill_super(struct super_block *sb, void *data, int silent);
24
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#endif