source: trunk/target/linux/generic/patches-3.3/950-vm_exports.patch @ 31223

Last change on this file since 31223 was 31223, checked in by jogo, 4 years ago

kernel: update linux 3.3 to 3.3.1

File size: 3.1 KB
  • mm/shmem.c

    a b EXPORT_SYMBOL_GPL(shmem_truncate_range); 
    24902490 
    24912491/* common code */ 
    24922492 
     2493void shmem_set_file(struct vm_area_struct *vma, struct file *file) 
     2494{ 
     2495        if (vma->vm_file) 
     2496                fput(vma->vm_file); 
     2497        vma->vm_file = file; 
     2498        vma->vm_ops = &shmem_vm_ops; 
     2499        vma->vm_flags |= VM_CAN_NONLINEAR; 
     2500} 
     2501EXPORT_SYMBOL_GPL(shmem_set_file); 
     2502 
    24932503/** 
    24942504 * shmem_file_setup - get an unlinked file living in tmpfs 
    24952505 * @name: name for dentry (to be seen in /proc/<pid>/maps 
    int shmem_zero_setup(struct vm_area_stru 
    25672577        if (IS_ERR(file)) 
    25682578                return PTR_ERR(file); 
    25692579 
    2570         if (vma->vm_file) 
    2571                 fput(vma->vm_file); 
    2572         vma->vm_file = file; 
    2573         vma->vm_ops = &shmem_vm_ops; 
    2574         vma->vm_flags |= VM_CAN_NONLINEAR; 
     2580        shmem_set_file(vma, file); 
     2581 
    25752582        return 0; 
    25762583} 
    25772584 
  • 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 
    500500 
    501501        return files; 
    502502} 
     503EXPORT_SYMBOL_GPL(get_files_struct); 
    503504 
    504505void put_files_struct(struct files_struct *files) 
    505506{ 
    void put_files_struct(struct files_struc 
    521522                rcu_read_unlock(); 
    522523        } 
    523524} 
     525EXPORT_SYMBOL_GPL(put_files_struct); 
    524526 
    525527void reset_files_struct(struct files_struct *files) 
    526528{ 
  • kernel/sched/core.c

    a b int can_nice(const struct task_struct *p 
    38553855        return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) || 
    38563856                capable(CAP_SYS_NICE)); 
    38573857} 
     3858EXPORT_SYMBOL_GPL(can_nice); 
    38583859 
    38593860#ifdef __ARCH_WANT_SYS_NICE 
    38603861 
  • mm/memory.c

    a b unsigned long zap_page_range(struct vm_a 
    14121412        tlb_finish_mmu(&tlb, address, end); 
    14131413        return end; 
    14141414} 
     1415EXPORT_SYMBOL_GPL(zap_page_range); 
    14151416 
    14161417/** 
    14171418 * zap_vma_ptes - remove ptes mapping the vma 
    static inline int check_stack_guard_page 
    30873088        } 
    30883089        return 0; 
    30893090} 
     3091EXPORT_SYMBOL_GPL(vmtruncate_range); 
    30903092 
    30913093/* 
    30923094 * We enter with non-exclusive mmap_sem (to exclude vma changes, 
  • mm/vmalloc.c

    a b void unmap_kernel_range(unsigned long ad 
    12571257        vunmap_page_range(addr, end); 
    12581258        flush_tlb_kernel_range(addr, end); 
    12591259} 
     1260EXPORT_SYMBOL_GPL(unmap_kernel_range); 
    12601261 
    12611262int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages) 
    12621263{ 
    struct vm_struct *get_vm_area(unsigned l 
    13941395        return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END, 
    13951396                                -1, GFP_KERNEL, __builtin_return_address(0)); 
    13961397} 
     1398EXPORT_SYMBOL_GPL(get_vm_area); 
    13971399 
    13981400struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags, 
    13991401                                void *caller) 
  • include/linux/mm.h

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