|
@@ -5,6 +5,13 @@
|
|
|
#include <linux/mempolicy.h>
|
|
|
#include <linux/percpu_counter.h>
|
|
|
|
|
|
+struct page;
|
|
|
+struct file;
|
|
|
+struct inode;
|
|
|
+struct super_block;
|
|
|
+struct user_struct;
|
|
|
+struct vm_area_struct;
|
|
|
+
|
|
|
/* inode in-kernel data */
|
|
|
|
|
|
#define SHMEM_NR_DIRECT 16
|
|
@@ -45,7 +52,17 @@ static inline struct shmem_inode_info *SHMEM_I(struct inode *inode)
|
|
|
return container_of(inode, struct shmem_inode_info, vfs_inode);
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
+ * Functions in mm/shmem.c called directly from elsewhere:
|
|
|
+ */
|
|
|
extern int init_tmpfs(void);
|
|
|
extern int shmem_fill_super(struct super_block *sb, void *data, int silent);
|
|
|
+extern struct file *shmem_file_setup(const char *name,
|
|
|
+ loff_t size, unsigned long flags);
|
|
|
+extern int shmem_zero_setup(struct vm_area_struct *);
|
|
|
+extern int shmem_lock(struct file *file, int lock, struct user_struct *user);
|
|
|
+extern int shmem_unuse(swp_entry_t entry, struct page *page);
|
|
|
+extern void mem_cgroup_get_shmem_target(struct inode *inode, pgoff_t pgoff,
|
|
|
+ struct page **pagep, swp_entry_t *ent);
|
|
|
|
|
|
#endif
|