source: trunk/target/linux/generic/patches-3.0/950-vm_exports.patch @ 27722

Last change on this file since 27722 was 27722, checked in by hauke, 5 years ago

kernel: update to linux-3.0 and refresh patches.

Thank you Peter Wagner for the patch

File size: 3.1 KB
  • mm/shmem.c

    a b out: 
    29512951 
    29522952/* common code */ 
    29532953 
     2954void shmem_set_file(struct vm_area_struct *vma, struct file *file) 
     2955{ 
     2956        if (vma->vm_file) 
     2957                fput(vma->vm_file); 
     2958        vma->vm_file = file; 
     2959        vma->vm_ops = &shmem_vm_ops; 
     2960        vma->vm_flags |= VM_CAN_NONLINEAR; 
     2961} 
     2962EXPORT_SYMBOL_GPL(shmem_set_file); 
     2963 
    29542964/** 
    29552965 * shmem_file_setup - get an unlinked file living in tmpfs 
    29562966 * @name: name for dentry (to be seen in /proc/<pid>/maps 
    int shmem_zero_setup(struct vm_area_stru 
    30283038        if (IS_ERR(file)) 
    30293039                return PTR_ERR(file); 
    30303040 
    3031         if (vma->vm_file) 
    3032                 fput(vma->vm_file); 
    3033         vma->vm_file = file; 
    3034         vma->vm_ops = &shmem_vm_ops; 
    3035         vma->vm_flags |= VM_CAN_NONLINEAR; 
     3041        shmem_set_file(vma, file); 
     3042 
    30363043        return 0; 
    30373044} 
    30383045 
  • fs/file.c

    a b int expand_files(struct files_struct *fi 
    268268        /* All good, so we try */ 
    269269        return expand_fdtable(files, nr); 
    270270} 
     271EXPORT_SYMBOL_GPL(expand_files); 
    271272 
    272273static int count_open_files(struct fdtable *fdt) 
    273274{ 
  • kernel/exit.c

    a b struct files_struct *get_files_struct(st 
    513513 
    514514        return files; 
    515515} 
     516EXPORT_SYMBOL_GPL(get_files_struct); 
    516517 
    517518void put_files_struct(struct files_struct *files) 
    518519{ 
    void put_files_struct(struct files_struc 
    534535                rcu_read_unlock(); 
    535536        } 
    536537} 
     538EXPORT_SYMBOL_GPL(put_files_struct); 
    537539 
    538540void reset_files_struct(struct files_struct *files) 
    539541{ 
  • kernel/sched.c

    a b int can_nice(const struct task_struct *p 
    49374937        return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) || 
    49384938                capable(CAP_SYS_NICE)); 
    49394939} 
     4940EXPORT_SYMBOL_GPL(can_nice); 
    49404941 
    49414942#ifdef __ARCH_WANT_SYS_NICE 
    49424943 
  • mm/memory.c

    a b unsigned long zap_page_range(struct vm_a 
    13961396        tlb_finish_mmu(&tlb, address, end); 
    13971397        return end; 
    13981398} 
     1399EXPORT_SYMBOL_GPL(zap_page_range); 
    13991400 
    14001401/** 
    14011402 * zap_vma_ptes - remove ptes mapping the vma 
    static inline int check_stack_guard_page 
    30153016        } 
    30163017        return 0; 
    30173018} 
     3019EXPORT_SYMBOL_GPL(vmtruncate_range); 
    30183020 
    30193021/* 
    30203022 * We enter with non-exclusive mmap_sem (to exclude vma changes, 
  • mm/vmalloc.c

    a b void unmap_kernel_range(unsigned long ad 
    12451245        vunmap_page_range(addr, end); 
    12461246        flush_tlb_kernel_range(addr, end); 
    12471247} 
     1248EXPORT_SYMBOL_GPL(unmap_kernel_range); 
    12481249 
    12491250int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages) 
    12501251{ 
    struct vm_struct *get_vm_area(unsigned l 
    13601361        return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END, 
    13611362                                -1, GFP_KERNEL, __builtin_return_address(0)); 
    13621363} 
     1364EXPORT_SYMBOL_GPL(get_vm_area); 
    13631365 
    13641366struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags, 
    13651367                                void *caller) 
  • include/linux/mm.h

    a b extern bool skip_free_areas_node(unsigne 
    871871 
    872872int shmem_lock(struct file *file, int lock, struct user_struct *user); 
    873873struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); 
     874void shmem_set_file(struct vm_area_struct *vma, struct file *file); 
    874875int shmem_zero_setup(struct vm_area_struct *); 
    875876 
    876877extern int can_do_mlock(void); 
Note: See TracBrowser for help on using the repository browser.