Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _LINUX_RAMFS_H |
| 3 | #define _LINUX_RAMFS_H |
| 4 | |
Al Viro | d7167b1 | 2019-09-07 07:23:15 -0400 | [diff] [blame] | 5 | #include <linux/fs_parser.h> // bleh... |
| 6 | |
Dmitry Monakhov | 454abaf | 2010-03-04 17:32:18 +0300 | [diff] [blame] | 7 | struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, |
Al Viro | 632861f | 2011-07-26 03:16:55 -0400 | [diff] [blame] | 8 | umode_t mode, dev_t dev); |
David Howells | f323562 | 2019-03-25 16:38:31 +0000 | [diff] [blame] | 9 | extern int ramfs_init_fs_context(struct fs_context *fc); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
Andrew Morton | 250297e | 2013-04-29 15:06:12 -0700 | [diff] [blame] | 11 | #ifdef CONFIG_MMU |
| 12 | static inline int |
| 13 | ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | #else |
Nick Piggin | 4b19de6 | 2008-10-02 14:50:16 -0700 | [diff] [blame] | 18 | extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize); |
David Howells | 642fb4d | 2006-01-06 00:11:41 -0800 | [diff] [blame] | 19 | #endif |
| 20 | |
Al Viro | d7167b1 | 2019-09-07 07:23:15 -0400 | [diff] [blame] | 21 | extern const struct fs_parameter_spec ramfs_fs_parameters[]; |
Arjan van de Ven | 4b6f5d2 | 2006-03-28 01:56:42 -0800 | [diff] [blame] | 22 | extern const struct file_operations ramfs_file_operations; |
Alexey Dobriyan | f0f37e2f | 2009-09-27 22:29:37 +0400 | [diff] [blame] | 23 | extern const struct vm_operations_struct generic_file_vm_ops; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #endif |