source: trunk/target/linux/generic/patches-2.6.38/980-vm_exports.patch @ 25081

Last change on this file since 25081 was 25081, checked in by kaloz, 6 years ago

[target/generic]: refresh 2.6.38 patches with -rc2

File size: 3.4 KB
  • mm/shmem.c

    a b  
    3030#include <linux/module.h> 
    3131#include <linux/percpu_counter.h> 
    3232#include <linux/swap.h> 
     33#include <linux/ima.h> 
    3334 
    3435static struct vfsmount *shm_mnt; 
    3536 
    out: 
    27102711 
    27112712/* common code */ 
    27122713 
     2714void shmem_set_file(struct vm_area_struct *vma, struct file *file) 
     2715{ 
     2716        ima_counts_get(file); 
     2717        if (vma->vm_file) 
     2718                fput(vma->vm_file); 
     2719        vma->vm_file = file; 
     2720        vma->vm_ops = &shmem_vm_ops; 
     2721} 
     2722EXPORT_SYMBOL_GPL(shmem_set_file); 
     2723 
    27132724/** 
    27142725 * shmem_file_setup - get an unlinked file living in tmpfs 
    27152726 * @name: name for dentry (to be seen in /proc/<pid>/maps 
    int shmem_zero_setup(struct vm_area_stru 
    27872798        if (IS_ERR(file)) 
    27882799                return PTR_ERR(file); 
    27892800 
    2790         if (vma->vm_file) 
    2791                 fput(vma->vm_file); 
    2792         vma->vm_file = file; 
    2793         vma->vm_ops = &shmem_vm_ops; 
     2801        shmem_set_file(vma, file); 
    27942802        return 0; 
    27952803} 
  • fs/file.c

    a b int expand_files(struct files_struct *fi 
    264264        /* All good, so we try */ 
    265265        return expand_fdtable(files, nr); 
    266266} 
     267EXPORT_SYMBOL_GPL(expand_files); 
    267268 
    268269static int count_open_files(struct fdtable *fdt) 
    269270{ 
  • 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/fork.c

    a b void __put_task_struct(struct task_struc 
    193193        if (!profile_handoff_task(tsk)) 
    194194                free_task(tsk); 
    195195} 
     196EXPORT_SYMBOL_GPL(__put_task_struct); 
    196197 
    197198/* 
    198199 * macro override instead of weak attribute alias, to workaround 
  • kernel/sched.c

    a b int can_nice(const struct task_struct *p 
    46404640        return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) || 
    46414641                capable(CAP_SYS_NICE)); 
    46424642} 
     4643EXPORT_SYMBOL_GPL(can_nice); 
    46434644 
    46444645#ifdef __ARCH_WANT_SYS_NICE 
    46454646 
  • mm/memory.c

    a b unsigned long zap_page_range(struct vm_a 
    12291229                tlb_finish_mmu(tlb, address, end); 
    12301230        return end; 
    12311231} 
     1232EXPORT_SYMBOL_GPL(zap_page_range); 
    12321233 
    12331234/** 
    12341235 * zap_vma_ptes - remove ptes mapping the vma 
    int vmtruncate_range(struct inode *inode 
    26922693 
    26932694        return 0; 
    26942695} 
     2696EXPORT_SYMBOL_GPL(vmtruncate_range); 
    26952697 
    26962698/* 
    26972699 * We enter with non-exclusive mmap_sem (to exclude vma changes, 
  • mm/vmalloc.c

    a b void unmap_kernel_range(unsigned long ad 
    11931193        vunmap_page_range(addr, end); 
    11941194        flush_tlb_kernel_range(addr, end); 
    11951195} 
     1196EXPORT_SYMBOL_GPL(unmap_kernel_range); 
    11961197 
    11971198int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages) 
    11981199{ 
    struct vm_struct *get_vm_area(unsigned l 
    13081309        return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END, 
    13091310                                -1, GFP_KERNEL, __builtin_return_address(0)); 
    13101311} 
     1312EXPORT_SYMBOL_GPL(get_vm_area); 
    13111313 
    13121314struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags, 
    13131315                                void *caller) 
  • include/linux/mm.h

    a b extern void show_free_areas(void); 
    856856 
    857857int shmem_lock(struct file *file, int lock, struct user_struct *user); 
    858858struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); 
     859void shmem_set_file(struct vm_area_struct *vma, struct file *file); 
    859860int shmem_zero_setup(struct vm_area_struct *); 
    860861 
    861862#ifndef CONFIG_MMU 
Note: See TracBrowser for help on using the repository browser.