source: trunk/target/linux/generic/patches-2.6.34/980-vm_exports.patch @ 26125

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

kernel: update to kernel version 2.6.34.8

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 
    int shmem_lock(struct file *file, int lo 
    26202621 
    26212622/* common code */ 
    26222623 
     2624void shmem_set_file(struct vm_area_struct *vma, struct file *file) 
     2625{ 
     2626        ima_counts_get(file); 
     2627        if (vma->vm_file) 
     2628                fput(vma->vm_file); 
     2629        vma->vm_file = file; 
     2630        vma->vm_ops = &shmem_vm_ops; 
     2631} 
     2632EXPORT_SYMBOL_GPL(shmem_set_file); 
     2633 
    26232634/** 
    26242635 * shmem_file_setup - get an unlinked file living in tmpfs 
    26252636 * @name: name for dentry (to be seen in /proc/<pid>/maps 
    int shmem_zero_setup(struct vm_area_stru 
    26972708        if (IS_ERR(file)) 
    26982709                return PTR_ERR(file); 
    26992710 
    2700         if (vma->vm_file) 
    2701                 fput(vma->vm_file); 
    2702         vma->vm_file = file; 
    2703         vma->vm_ops = &shmem_vm_ops; 
     2711        shmem_set_file(vma, file); 
    27042712        return 0; 
    27052713} 
  • 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 
    177177        if (!profile_handoff_task(tsk)) 
    178178                free_task(tsk); 
    179179} 
     180EXPORT_SYMBOL_GPL(__put_task_struct); 
    180181 
    181182/* 
    182183 * macro override instead of weak attribute alias, to workaround 
  • kernel/sched.c

    a b int can_nice(const struct task_struct *p 
    43394339        return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) || 
    43404340                capable(CAP_SYS_NICE)); 
    43414341} 
     4342EXPORT_SYMBOL_GPL(can_nice); 
    43424343 
    43434344#ifdef __ARCH_WANT_SYS_NICE 
    43444345 
  • 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 
    26062607 
    26072608        return 0; 
    26082609} 
     2610EXPORT_SYMBOL_GPL(vmtruncate_range); 
    26092611 
    26102612/* 
    26112613 * 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); 
    732732 
    733733int shmem_lock(struct file *file, int lock, struct user_struct *user); 
    734734struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); 
     735void shmem_set_file(struct vm_area_struct *vma, struct file *file); 
    735736int shmem_zero_setup(struct vm_area_struct *); 
    736737 
    737738#ifndef CONFIG_MMU 
  • kernel/signal.c

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