]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/ramfs.h
mod_devicetable: fix PHY module format
[mirror_ubuntu-bionic-kernel.git] / include / linux / ramfs.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _LINUX_RAMFS_H
3#define _LINUX_RAMFS_H
4
454abafe 5struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
632861f0 6 umode_t mode, dev_t dev);
3c26ff6e
AV
7extern struct dentry *ramfs_mount(struct file_system_type *fs_type,
8 int flags, const char *dev_name, void *data);
1da177e4 9
250297ed
AM
10#ifdef CONFIG_MMU
11static inline int
12ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
13{
14 return 0;
15}
16#else
4b19de6d 17extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
642fb4d1
DH
18#endif
19
4b6f5d20 20extern const struct file_operations ramfs_file_operations;
f0f37e2f 21extern const struct vm_operations_struct generic_file_vm_ops;
57f150a5 22extern int __init init_ramfs_fs(void);
1da177e4 23
da5e4ef7
PK
24int ramfs_fill_super(struct super_block *sb, void *data, int silent);
25
1da177e4 26#endif