@@ -2207,42 +2207,7 @@ struct vm_area_struct *find_extend_vma_locked(struct mm_struct *mm, unsigned lon
2207
2207
}
2208
2208
#endif
2209
2209
2210
- /*
2211
- * IA64 has some horrid mapping rules: it can expand both up and down,
2212
- * but with various special rules.
2213
- *
2214
- * We'll get rid of this architecture eventually, so the ugliness is
2215
- * temporary.
2216
- */
2217
- #ifdef CONFIG_IA64
2218
- static inline bool vma_expand_ok (struct vm_area_struct * vma , unsigned long addr )
2219
- {
2220
- return REGION_NUMBER (addr ) == REGION_NUMBER (vma -> vm_start ) &&
2221
- REGION_OFFSET (addr ) < RGN_MAP_LIMIT ;
2222
- }
2223
-
2224
- /*
2225
- * IA64 stacks grow down, but there's a special register backing store
2226
- * that can grow up. Only sequentially, though, so the new address must
2227
- * match vm_end.
2228
- */
2229
- static inline int vma_expand_up (struct vm_area_struct * vma , unsigned long addr )
2230
- {
2231
- if (!vma_expand_ok (vma , addr ))
2232
- return - EFAULT ;
2233
- if (vma -> vm_end != (addr & PAGE_MASK ))
2234
- return - EFAULT ;
2235
- return expand_upwards (vma , addr );
2236
- }
2237
-
2238
- static inline bool vma_expand_down (struct vm_area_struct * vma , unsigned long addr )
2239
- {
2240
- if (!vma_expand_ok (vma , addr ))
2241
- return - EFAULT ;
2242
- return expand_downwards (vma , addr );
2243
- }
2244
-
2245
- #elif defined(CONFIG_STACK_GROWSUP )
2210
+ #if defined(CONFIG_STACK_GROWSUP )
2246
2211
2247
2212
#define vma_expand_up (vma ,addr ) expand_upwards(vma, addr)
2248
2213
#define vma_expand_down (vma , addr ) (-EFAULT)
0 commit comments