source: trunk/target/linux/generic/patches-2.6.35/980-vm_exports.patch @ 25582

Last change on this file since 25582 was 25582, checked in by florian, 6 years ago

[kernel] update to 2.6.35.11

File size: 3.6 KB
  • mm/shmem.c

    a b  
    2929#include <linux/mm.h> 
    3030#include <linux/module.h> 
    3131#include <linux/swap.h> 
     32#include <linux/ima.h> 
    3233 
    3334static struct vfsmount *shm_mnt; 
    3435 
    out: 
    26752676 
    26762677/* common code */ 
    26772678 
     2679void shmem_set_file(struct vm_area_struct *vma, struct file *file) 
     2680{ 
     2681        ima_counts_get(file); 
     2682        if (vma->vm_file) 
     2683                fput(vma->vm_file); 
     2684        vma->vm_file = file; 
     2685        vma->vm_ops = &shmem_vm_ops; 
     2686} 
     2687EXPORT_SYMBOL_GPL(shmem_set_file); 
     2688 
    26782689/** 
    26792690 * shmem_file_setup - get an unlinked file living in tmpfs 
    26802691 * @name: name for dentry (to be seen in /proc/<pid>/maps 
    int shmem_zero_setup(struct vm_area_stru 
    27522763        if (IS_ERR(file)) 
    27532764                return PTR_ERR(file); 
    27542765 
    2755         if (vma->vm_file) 
    2756                 fput(vma->vm_file); 
    2757         vma->vm_file = file; 
    2758         vma->vm_ops = &shmem_vm_ops; 
     2766        shmem_set_file(vma, file); 
    27592767        return 0; 
    27602768} 
  • fs/file.c

    a b int expand_files(struct files_struct *fi 
    271271        /* All good, so we try */ 
    272272        return expand_fdtable(files, nr); 
    273273} 
     274EXPORT_SYMBOL_GPL(expand_files); 
    274275 
    275276static int count_open_files(struct fdtable *fdt) 
    276277{ 
  • kernel/exit.c

    a b struct files_struct *get_files_struct(st 
    514514 
    515515        return files; 
    516516} 
     517EXPORT_SYMBOL_GPL(get_files_struct); 
    517518 
    518519void put_files_struct(struct files_struct *files) 
    519520{ 
    void put_files_struct(struct files_struc 
    535536                rcu_read_unlock(); 
    536537        } 
    537538} 
     539EXPORT_SYMBOL_GPL(put_files_struct); 
    538540 
    539541void reset_files_struct(struct files_struct *files) 
    540542{ 
  • kernel/fork.c

    a b void __put_task_struct(struct task_struc 
    190190        if (!profile_handoff_task(tsk)) 
    191191                free_task(tsk); 
    192192} 
     193EXPORT_SYMBOL_GPL(__put_task_struct); 
    193194 
    194195/* 
    195196 * macro override instead of weak attribute alias, to workaround 
  • kernel/sched.c

    a b int can_nice(const struct task_struct *p 
    43904390        return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) || 
    43914391                capable(CAP_SYS_NICE)); 
    43924392} 
     4393EXPORT_SYMBOL_GPL(can_nice); 
    43934394 
    43944395#ifdef __ARCH_WANT_SYS_NICE 
    43954396 
  • mm/memory.c

    a b unsigned long zap_page_range(struct vm_a 
    12031203                tlb_finish_mmu(tlb, address, end); 
    12041204        return end; 
    12051205} 
     1206EXPORT_SYMBOL_GPL(zap_page_range); 
    12061207 
    12071208/** 
    12081209 * zap_vma_ptes - remove ptes mapping the vma 
    int vmtruncate_range(struct inode *inode 
    26152616 
    26162617        return 0; 
    26172618} 
     2619EXPORT_SYMBOL_GPL(vmtruncate_range); 
    26182620 
    26192621/* 
    26202622 * We enter with non-exclusive mmap_sem (to exclude vma changes, 
  • mm/vmalloc.c

    a b void unmap_kernel_range(unsigned long ad 
    11821182        vunmap_page_range(addr, end); 
    11831183        flush_tlb_kernel_range(addr, end); 
    11841184} 
     1185EXPORT_SYMBOL_GPL(unmap_kernel_range); 
    11851186 
    11861187int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages) 
    11871188{ 
    struct vm_struct *get_vm_area(unsigned l 
    12971298        return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END, 
    12981299                                -1, GFP_KERNEL, __builtin_return_address(0)); 
    12991300} 
     1301EXPORT_SYMBOL_GPL(get_vm_area); 
    13001302 
    13011303struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags, 
    13021304                                void *caller) 
  • include/linux/mm.h

    a b extern void show_free_areas(void); 
    736736 
    737737int shmem_lock(struct file *file, int lock, struct user_struct *user); 
    738738struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); 
     739void shmem_set_file(struct vm_area_struct *vma, struct file *file); 
    739740int shmem_zero_setup(struct vm_area_struct *); 
    740741 
    741742#ifndef CONFIG_MMU 
  • kernel/signal.c

    a b struct sighand_struct *lock_task_sighand 
    11241124 
    11251125        return sighand; 
    11261126} 
     1127EXPORT_SYMBOL(lock_task_sighand); 
    11271128 
    11281129/* 
    11291130 * send signal info to all the members of a group 
Note: See TracBrowser for help on using the repository browser.