aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/shmem_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/shmem_fs.h')
-rw-r--r--include/linux/shmem_fs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h
index 2b7fec840517..cae65dc42bcc 100644
--- a/include/linux/shmem_fs.h
+++ b/include/linux/shmem_fs.h
@@ -5,6 +5,13 @@
5#include <linux/mempolicy.h> 5#include <linux/mempolicy.h>
6#include <linux/percpu_counter.h> 6#include <linux/percpu_counter.h>
7 7
8struct page;
9struct file;
10struct inode;
11struct super_block;
12struct user_struct;
13struct vm_area_struct;
14
8/* inode in-kernel data */ 15/* inode in-kernel data */
9 16
10#define SHMEM_NR_DIRECT 16 17#define SHMEM_NR_DIRECT 16
@@ -45,7 +52,17 @@ static inline struct shmem_inode_info *SHMEM_I(struct inode *inode)
45 return container_of(inode, struct shmem_inode_info, vfs_inode); 52 return container_of(inode, struct shmem_inode_info, vfs_inode);
46} 53}
47 54
55/*
56 * Functions in mm/shmem.c called directly from elsewhere:
57 */
48extern int init_tmpfs(void); 58extern int init_tmpfs(void);
49extern int shmem_fill_super(struct super_block *sb, void *data, int silent); 59extern int shmem_fill_super(struct super_block *sb, void *data, int silent);
60extern struct file *shmem_file_setup(const char *name,
61 loff_t size, unsigned long flags);
62extern int shmem_zero_setup(struct vm_area_struct *);
63extern int shmem_lock(struct file *file, int lock, struct user_struct *user);
64extern int shmem_unuse(swp_entry_t entry, struct page *page);
65extern void mem_cgroup_get_shmem_target(struct inode *inode, pgoff_t pgoff,
66 struct page **pagep, swp_entry_t *ent);
50 67
51#endif 68#endif