aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/shmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 2f961a6dbf57..90b576cbc06e 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -85,6 +85,7 @@ enum sgp_type {
85 SGP_WRITE, /* may exceed i_size, may allocate page */ 85 SGP_WRITE, /* may exceed i_size, may allocate page */
86}; 86};
87 87
88#ifdef CONFIG_TMPFS
88static unsigned long shmem_default_max_blocks(void) 89static unsigned long shmem_default_max_blocks(void)
89{ 90{
90 return totalram_pages / 2; 91 return totalram_pages / 2;
@@ -94,6 +95,7 @@ static unsigned long shmem_default_max_inodes(void)
94{ 95{
95 return min(totalram_pages - totalhigh_pages, totalram_pages / 2); 96 return min(totalram_pages - totalhigh_pages, totalram_pages / 2);
96} 97}
98#endif
97 99
98static int shmem_getpage(struct inode *inode, unsigned long idx, 100static int shmem_getpage(struct inode *inode, unsigned long idx,
99 struct page **pagep, enum sgp_type sgp, int *type); 101 struct page **pagep, enum sgp_type sgp, int *type);