Files
Greg Kroah-Hartman 761bba431a Merge 4.4.148 into android-msm-wahoo-4.4-lts
Linux 4.4.148
  * x86/speculation/l1tf: Unbreak !__HAVE_ARCH_PFN_MODIFY_ALLOWED architectures
      include/asm-generic/pgtable.h
    x86/init: fix build with CONFIG_SWAP=n
    x86/speculation/l1tf: Fix up CPU feature flags
    x86/mm/kmmio: Make the tracer robust against L1TF
    x86/mm/pat: Make set_memory_np() L1TF safe
    x86/speculation/l1tf: Make pmd/pud_mknotpresent() invert
    x86/speculation/l1tf: Invert all not present mappings
    x86/speculation/l1tf: Fix up pte->pfn conversion for PAE
    x86/speculation/l1tf: Protect PAE swap entries against L1TF
    x86/cpufeatures: Add detection of L1D cache flush support.
    x86/speculation/l1tf: Extend 64bit swap file size limit
    x86/bugs: Move the l1tf function and define pr_fmt properly
  * x86/speculation/l1tf: Limit swap file size to MAX_PA/2
      include/linux/swapfile.h
      mm/swapfile.c
  * x86/speculation/l1tf: Disallow non privileged high MMIO PROT_NONE mappings
      include/asm-generic/pgtable.h
      mm/memory.c
      mm/mprotect.c
  * mm: fix cache mode tracking in vm_insert_mixed()
      mm/memory.c
  * mm: Add vm_insert_pfn_prot()
      include/linux/mm.h
      mm/memory.c
  * x86/speculation/l1tf: Add sysfs reporting for l1tf
      drivers/base/cpu.c
      include/linux/cpu.h
    x86/speculation/l1tf: Make sure the first page is always reserved
    x86/speculation/l1tf: Protect PROT_NONE PTEs against speculation
    x86/speculation/l1tf: Protect swap entries against L1TF
    x86/speculation/l1tf: Change order of offset/type in swap entry
    mm: x86: move _PAGE_SWP_SOFT_DIRTY from bit 7 to bit 1
    x86/mm: Fix swap entry comment and macro
    x86/mm: Move swap offset/type up in PTE to work around erratum
    x86/speculation/l1tf: Increase 32bit PAE __PHYSICAL_PAGE_SHIFT
    x86/irqflags: Provide a declaration for native_save_fl
    kprobes/x86: Fix %p uses in error messages
    x86/speculation: Protect against userspace-userspace spectreRSB
    x86/paravirt: Fix spectre-v2 mitigations for paravirt guests
    ARM: dts: imx6sx: fix irq for pcie bridge
    IB/ocrdma: fix out of bounds access to local buffer
    IB/mlx4: Mark user MR as writable if actual virtual memory is writable
    IB/core: Make testing MR flags for writability a static inline function
  * fix __legitimize_mnt()/mntput() race
      fs/namespace.c
  * fix mntput/mntput race
      fs/namespace.c
  * root dentries need RCU-delayed freeing
      fs/dcache.c
    scsi: sr: Avoid that opening a CD-ROM hangs with runtime power management enabled
  * ACPI / LPSS: Add missing prv_offset setting for byt/cht PWM devices
      drivers/acpi/acpi_lpss.c
    xen/netfront: don't cache skb_shinfo()
    parisc: Define mb() and add memory barriers to assembler unlock sequences
    parisc: Enable CONFIG_MLONGCALLS by default
  * fork: unconditionally clear stack on fork
      include/linux/thread_info.h
  * ipv4+ipv6: Make INET*_ESP select CRYPTO_ECHAINIV
      net/ipv4/Kconfig
      net/ipv6/Kconfig
    tpm: fix race condition in tpm_common_write()
  * ext4: fix check to prevent initializing reserved inodes
      fs/ext4/ialloc.c
      fs/ext4/super.c

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2018-08-18 06:56:17 -07:00

21 lines
758 B
C

#ifndef _LINUX_SWAPFILE_H
#define _LINUX_SWAPFILE_H
/*
* these were static in swapfile.c but frontswap.c needs them and we don't
* want to expose them to the dozens of source files that include swap.h
*/
extern spinlock_t swap_lock;
extern struct plist_head swap_active_head;
extern spinlock_t swap_avail_lock;
extern struct plist_head swap_avail_head;
extern struct swap_info_struct *swap_info[];
extern int try_to_unuse(unsigned int, bool, unsigned long);
extern unsigned long generic_max_swapfile_size(void);
extern unsigned long max_swapfile_size(void);
extern int swap_ratio(struct swap_info_struct **si);
extern void setup_swap_ratio(struct swap_info_struct *p, int prio);
extern bool is_swap_ratio_group(int prio);
#endif /* _LINUX_SWAPFILE_H */