From: Linus Torvalds Date: Fri, 6 Apr 2018 21:19:26 +0000 (-0700) Subject: Merge branch 'akpm' (patches from Andrew) X-Git-Tag: v4.17-rc1~99 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=3b54765cca23152ec0cc254b75c877c10f6e2870;p=linux.git Merge branch 'akpm' (patches from Andrew) Merge updates from Andrew Morton: - a few misc things - ocfs2 updates - the v9fs maintainers have been missing for a long time. I've taken over v9fs patch slinging. - most of MM * emailed patches from Andrew Morton : (116 commits) mm,oom_reaper: check for MMF_OOM_SKIP before complaining mm/ksm: fix interaction with THP mm/memblock.c: cast constant ULLONG_MAX to phys_addr_t headers: untangle kmemleak.h from mm.h include/linux/mmdebug.h: make VM_WARN* non-rvals mm/page_isolation.c: make start_isolate_page_range() fail if already isolated mm: change return type to vm_fault_t mm, oom: remove 3% bonus for CAP_SYS_ADMIN processes mm, page_alloc: wakeup kcompactd even if kswapd cannot free more memory kernel/fork.c: detect early free of a live mm mm: make counting of list_lru_one::nr_items lockless mm/swap_state.c: make bool enable_vma_readahead and swap_vma_readahead() static block_invalidatepage(): only release page if the full page was invalidated mm: kernel-doc: add missing parameter descriptions mm/swap.c: remove @cold parameter description for release_pages() mm/nommu: remove description of alloc_vm_area zram: drop max_zpage_size and use zs_huge_class_size() zsmalloc: introduce zs_huge_class_size() mm: fix races between swapoff and flush dcache fs/direct-io.c: minor cleanups in do_blockdev_direct_IO ... --- 3b54765cca23152ec0cc254b75c877c10f6e2870 diff --cc drivers/block/zram/zram_drv.h index 1e9bf65c0bfb,d71c8000a964..008861220723 --- a/drivers/block/zram/zram_drv.h +++ b/drivers/block/zram/zram_drv.h @@@ -21,22 -21,7 +21,6 @@@ #include "zcomp.h" - /*-- Configurable parameters */ - - /* - * Pages that compress to size greater than this are stored - * uncompressed in memory. - */ - static const size_t max_zpage_size = PAGE_SIZE / 4 * 3; - - /* - * NOTE: max_zpage_size must be less than or equal to: - * ZS_MAX_ALLOC_SIZE. Otherwise, zs_malloc() would - * always return failure. - */ - - /*-- End of configurable params */ - -#define SECTOR_SHIFT 9 #define SECTORS_PER_PAGE_SHIFT (PAGE_SHIFT - SECTOR_SHIFT) #define SECTORS_PER_PAGE (1 << SECTORS_PER_PAGE_SHIFT) #define ZRAM_LOGICAL_BLOCK_SHIFT 12