blob: 5ef7d54caac23ecd957145a407cb95f29542d109 [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
Dmitry Monakhov454abaf2010-03-04 17:32:18 +03005struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
Al Viro632861f2011-07-26 03:16:55 -04006 umode_t mode, dev_t dev);
Al Viro3c26ff62010-07-25 11:46:36 +04007extern struct dentry *ramfs_mount(struct file_system_type *fs_type,
8 int flags, const char *dev_name, void *data);
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Andrew Morton250297e2013-04-29 15:06:12 -070010#ifdef CONFIG_MMU
11static inline int
12ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
13{
14 return 0;
15}
16#else
Nick Piggin4b19de62008-10-02 14:50:16 -070017extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
David Howells642fb4d2006-01-06 00:11:41 -080018#endif
19
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080020extern const struct file_operations ramfs_file_operations;
Alexey Dobriyanf0f37e2f2009-09-27 22:29:37 +040021extern const struct vm_operations_struct generic_file_vm_ops;
Rob Landley57f150a2013-09-11 14:26:10 -070022extern int __init init_ramfs_fs(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Peter Korsgaardda5e4ef2010-03-16 21:55:21 +010024int ramfs_fill_super(struct super_block *sb, void *data, int silent);
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#endif