blob: 917528d102c4eb63b7e9d3ab7fae9a33d03e20cb [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _LINUX_RAMFS_H
3#define _LINUX_RAMFS_H
4
Al Virod7167b12019-09-07 07:23:15 -04005#include <linux/fs_parser.h> // bleh...
6
Dmitry Monakhov454abaf2010-03-04 17:32:18 +03007struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
Al Viro632861f2011-07-26 03:16:55 -04008 umode_t mode, dev_t dev);
David Howellsf3235622019-03-25 16:38:31 +00009extern int ramfs_init_fs_context(struct fs_context *fc);
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Andrew Morton250297e2013-04-29 15:06:12 -070011#ifdef CONFIG_MMU
12static inline int
13ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
14{
15 return 0;
16}
17#else
Nick Piggin4b19de62008-10-02 14:50:16 -070018extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
David Howells642fb4d2006-01-06 00:11:41 -080019#endif
20
Al Virod7167b12019-09-07 07:23:15 -040021extern const struct fs_parameter_spec ramfs_fs_parameters[];
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080022extern const struct file_operations ramfs_file_operations;
Alexey Dobriyanf0f37e2f2009-09-27 22:29:37 +040023extern const struct vm_operations_struct generic_file_vm_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#endif