Andrew Morton [Mon, 28 Feb 2022 23:05:36 +0000 (10:05 +1100)]
mm/oom_kill.c: fix vm_oom_kill_table[] ifdeffery
arm allnoconfig:
mm/oom_kill.c:60:25: warning: 'vm_oom_kill_table' defined but not used [-Wunused-variable]
60 | static struct ctl_table vm_oom_kill_table[] = {
| ^~~~~~~~~~~~~~~~~
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Andrew Morton [Mon, 28 Feb 2022 23:05:35 +0000 (10:05 +1100)]
arch/x86/kernel/resource.c: needs spinlock.h
fix recent breaking in -next. x86_64 allnoconfig.
In file included from arch/x86/kernel/resource.c:4:
./arch/x86/include/asm/pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'
105 | extern raw_spinlock_t pci_config_lock;
| ^~~~~~~~~~~~~~
am too lazy to hunt down the offending commit.
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Stephen Rothwell [Tue, 1 Mar 2022 09:08:57 +0000 (20:08 +1100)]
Merge branch 'akpm-current/current'
Stephen Rothwell [Tue, 1 Mar 2022 08:25:29 +0000 (19:25 +1100)]
Merge branch 'for-next/execve' of git://git./linux/kernel/git/kees/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 08:09:04 +0000 (19:09 +1100)]
Merge branch 'for-next' of git://git.infradead.org/users/willy/pagecache.git
# Conflicts:
# drivers/gpu/drm/drm_cache.c
Stephen Rothwell [Tue, 1 Mar 2022 07:52:37 +0000 (18:52 +1100)]
Merge branch 'sysctl-next' of git://git./linux/kernel/git/mcgrof/linux.git
# Conflicts:
# include/linux/sched/sysctl.h
# kernel/sysctl.c
Stephen Rothwell [Tue, 1 Mar 2022 07:36:12 +0000 (18:36 +1100)]
Merge branch 'rust-next' of https://github.com/Rust-for-Linux/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 07:19:49 +0000 (18:19 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/mic/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 07:10:19 +0000 (18:10 +1100)]
Merge branch 'master' of git://git./linux/kernel/git/crng/random.git
Stephen Rothwell [Tue, 1 Mar 2022 07:08:09 +0000 (18:08 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/vbabka/slab.git
Stephen Rothwell [Tue, 1 Mar 2022 07:08:08 +0000 (18:08 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/efi/efi.git
Stephen Rothwell [Tue, 1 Mar 2022 07:06:30 +0000 (18:06 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/cxl/cxl.git
Stephen Rothwell [Tue, 1 Mar 2022 06:54:32 +0000 (17:54 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/rppt/memblock.git
Stephen Rothwell [Tue, 1 Mar 2022 06:52:57 +0000 (17:52 +1100)]
Merge branch 'mhi-next' of git://git./linux/kernel/git/mani/mhi.git
Stephen Rothwell [Tue, 1 Mar 2022 06:50:36 +0000 (17:50 +1100)]
Merge branch 'kunit' of git://git./linux/kernel/git/shuah/linux-kselftest.git
Stephen Rothwell [Tue, 1 Mar 2022 06:49:01 +0000 (17:49 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/mdf/linux-fpga.git
Stephen Rothwell [Tue, 1 Mar 2022 06:46:35 +0000 (17:46 +1100)]
Merge branch 'hyperv-next' of git://git./linux/kernel/git/hyperv/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 06:30:28 +0000 (17:30 +1100)]
Merge branch 'main' of git://git.infradead.org/users/willy/xarray.git
Stephen Rothwell [Tue, 1 Mar 2022 06:28:51 +0000 (17:28 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/srini/nvmem.git
# Conflicts:
# MAINTAINERS
# drivers/nvmem/Kconfig
# drivers/nvmem/Makefile
Stephen Rothwell [Tue, 1 Mar 2022 06:27:16 +0000 (17:27 +1100)]
Merge branch 'ntb-next' of https://github.com/jonmason/ntb.git
Stephen Rothwell [Tue, 1 Mar 2022 06:25:06 +0000 (17:25 +1100)]
Merge branch 'libnvdimm-for-next' of git://git./linux/kernel/git/nvdimm/nvdimm.git
Stephen Rothwell [Tue, 1 Mar 2022 06:22:45 +0000 (17:22 +1100)]
Merge branch 'rtc-next' of git://git./linux/kernel/git/abelloni/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 06:21:00 +0000 (17:21 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/coresight/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 06:19:46 +0000 (17:19 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/livepatching/livepatching
Stephen Rothwell [Tue, 1 Mar 2022 06:18:32 +0000 (17:18 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/shuah/linux-kselftest.git
Stephen Rothwell [Tue, 1 Mar 2022 06:16:21 +0000 (17:16 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/ebiederm/user-namespace.git
Stephen Rothwell [Tue, 1 Mar 2022 06:14:08 +0000 (17:14 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/thierry.reding/linux-pwm.git
Stephen Rothwell [Tue, 1 Mar 2022 06:11:43 +0000 (17:11 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/linusw/linux-pinctrl.git
Stephen Rothwell [Tue, 1 Mar 2022 06:09:30 +0000 (17:09 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/andy/linux-gpio-intel.git
Stephen Rothwell [Tue, 1 Mar 2022 06:05:54 +0000 (17:05 +1100)]
Merge branch 'gpio/for-next' of git://git./linux/kernel/git/brgl/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 06:03:42 +0000 (17:03 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/remoteproc/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 06:01:21 +0000 (17:01 +1100)]
Merge branch 'linux-next' of git://git./linux/kernel/git/mst/vhost.git
Stephen Rothwell [Tue, 1 Mar 2022 05:58:42 +0000 (16:58 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/mkp/scsi.git
Stephen Rothwell [Tue, 1 Mar 2022 05:48:04 +0000 (16:48 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/jejb/scsi.git
# Conflicts:
# block/blk-lib.c
# drivers/block/rnbd/rnbd-clt.c
Stephen Rothwell [Tue, 1 Mar 2022 05:48:03 +0000 (16:48 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/tj/cgroup.git
Stephen Rothwell [Tue, 1 Mar 2022 05:45:53 +0000 (16:45 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/vkoul/dmaengine.git
Stephen Rothwell [Tue, 1 Mar 2022 05:44:17 +0000 (16:44 +1100)]
Merge branch 'icc-next' of git://git./linux/kernel/git/djakov/icc.git
Stephen Rothwell [Tue, 1 Mar 2022 05:28:05 +0000 (16:28 +1100)]
Merge branch 'togreg' of git://git./linux/kernel/git/jic23/iio.git
# Conflicts:
# .mailmap
# drivers/iio/accel/fxls8962af-core.c
Stephen Rothwell [Tue, 1 Mar 2022 05:25:36 +0000 (16:25 +1100)]
Merge branch 'staging-next' of git://git./linux/kernel/git/gregkh/staging.git
# Conflicts:
# drivers/staging/fbtft/fbtft.h
Stephen Rothwell [Tue, 1 Mar 2022 05:24:00 +0000 (16:24 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/westeri/thunderbolt.git
Stephen Rothwell [Tue, 1 Mar 2022 05:22:26 +0000 (16:22 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/vkoul/soundwire.git
Stephen Rothwell [Tue, 1 Mar 2022 05:20:12 +0000 (16:20 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/phy/linux-phy.git
Stephen Rothwell [Tue, 1 Mar 2022 05:17:50 +0000 (16:17 +1100)]
Merge branch 'extcon-next' of git://git./linux/kernel/git/chanwoo/extcon.git
# Conflicts:
# drivers/power/supply/max8997_charger.c
Stephen Rothwell [Tue, 1 Mar 2022 05:14:42 +0000 (16:14 +1100)]
Stephen Rothwell [Tue, 1 Mar 2022 04:54:17 +0000 (15:54 +1100)]
Merge branch 'tty-next' of git://git./linux/kernel/git/gregkh/tty.git
# Conflicts:
# MAINTAINERS
Stephen Rothwell [Tue, 1 Mar 2022 04:54:16 +0000 (15:54 +1100)]
Merge branch 'for-usb-next' of git://git./linux/kernel/git/peter.chen/usb.git
Stephen Rothwell [Tue, 1 Mar 2022 04:51:50 +0000 (15:51 +1100)]
Merge branch 'usb-next' of git://git./linux/kernel/git/gregkh/usb.git
# Conflicts:
# arch/arm64/boot/dts/qcom/ipq6018.dtsi
# arch/arm64/boot/dts/xilinx/zynqmp.dtsi
Stephen Rothwell [Tue, 1 Mar 2022 04:35:42 +0000 (15:35 +1100)]
Merge branch 'driver-core-next' of git://git./linux/kernel/git/gregkh/driver-core.git
# Conflicts:
# drivers/power/supply/ab8500_chargalg.c
Stephen Rothwell [Tue, 1 Mar 2022 04:34:07 +0000 (15:34 +1100)]
Merge branch 'for-next' of git://github.com/cminyard/linux-ipmi.git
Stephen Rothwell [Tue, 1 Mar 2022 04:32:32 +0000 (15:32 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/pavel/linux-leds.git
Stephen Rothwell [Tue, 1 Mar 2022 04:30:58 +0000 (15:30 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/chrome-platform/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 04:29:19 +0000 (15:29 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/pdx86/platform-drivers-x86.git
Stephen Rothwell [Tue, 1 Mar 2022 04:27:09 +0000 (15:27 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/tj/wq.git
Stephen Rothwell [Tue, 1 Mar 2022 04:27:09 +0000 (15:27 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/dennis/percpu.git
Stephen Rothwell [Tue, 1 Mar 2022 04:25:56 +0000 (15:25 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/kvms390/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 04:22:54 +0000 (15:22 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/kvmarm/kvmarm.git
Stephen Rothwell [Tue, 1 Mar 2022 04:20:25 +0000 (15:20 +1100)]
Merge branch 'next' of git://git./virt/kvm/kvm.git
# Conflicts:
# arch/x86/kvm/x86.c
Stephen Rothwell [Tue, 1 Mar 2022 04:04:05 +0000 (15:04 +1100)]
Merge branch 'rcu/next' of git://git./linux/kernel/git/paulmck/linux-rcu.git
# Conflicts:
# kernel/rcu/tree_plugin.h
Stephen Rothwell [Tue, 1 Mar 2022 04:01:40 +0000 (15:01 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/rostedt/linux-trace.git
Stephen Rothwell [Tue, 1 Mar 2022 03:52:55 +0000 (14:52 +1100)]
Merge branch 'irq/irqchip-next' of git://git./linux/kernel/git/maz/arm-platforms.git
# Conflicts:
# drivers/pinctrl/pinctrl-starfive.c
Stephen Rothwell [Tue, 1 Mar 2022 03:51:20 +0000 (14:51 +1100)]
Merge branch 'edac-for-next' of git://git./linux/kernel/git/ras/ras.git
Stephen Rothwell [Tue, 1 Mar 2022 03:49:08 +0000 (14:49 +1100)]
Merge branch 'timers/drivers/next' of git://git.linaro.org/people/daniel.lezcano/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 03:32:40 +0000 (14:32 +1100)]
Merge branch 'auto-latest' of git://git./linux/kernel/git/tip/tip.git
Stephen Rothwell [Tue, 1 Mar 2022 03:29:32 +0000 (14:29 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/broonie/spi.git
# Conflicts:
# arch/arm/mach-pxa/stargate2.c
Stephen Rothwell [Tue, 1 Mar 2022 03:24:55 +0000 (14:24 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/robh/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 03:22:47 +0000 (14:22 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/pcmoore/audit.git
Stephen Rothwell [Tue, 1 Mar 2022 03:20:20 +0000 (14:20 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/joro/iommu.git
Stephen Rothwell [Tue, 1 Mar 2022 03:17:58 +0000 (14:17 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/jarkko/linux-tpmdd.git
Stephen Rothwell [Tue, 1 Mar 2022 03:01:35 +0000 (14:01 +1100)]
Merge branch 'master' of https://scm.osdn.net/gitroot/tomoyo/tomoyo-test1.git
Stephen Rothwell [Tue, 1 Mar 2022 02:59:25 +0000 (13:59 +1100)]
Merge branch 'next' of git://github.com/cschaufler/smack-next
Stephen Rothwell [Tue, 1 Mar 2022 02:52:05 +0000 (13:52 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/pcmoore/selinux.git
Stephen Rothwell [Tue, 1 Mar 2022 02:49:52 +0000 (13:49 +1100)]
Merge branch 'next-integrity' of git://git./linux/kernel/git/zohar/linux-integrity
Stephen Rothwell [Tue, 1 Mar 2022 02:47:38 +0000 (13:47 +1100)]
Merge branch 'apparmor-next' of git://git./linux/kernel/git/jj/linux-apparmor
Stephen Rothwell [Tue, 1 Mar 2022 02:47:37 +0000 (13:47 +1100)]
Merge branch 'next-testing' of git://git./linux/kernel/git/jmorris/linux-security.git
Stephen Rothwell [Tue, 1 Mar 2022 02:45:49 +0000 (13:45 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/broonie/regulator.git
Stephen Rothwell [Tue, 1 Mar 2022 02:43:10 +0000 (13:43 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/sre/linux-power-supply.git
Stephen Rothwell [Tue, 1 Mar 2022 02:40:45 +0000 (13:40 +1100)]
Merge branch 'for-mfd-next' of git://git./linux/kernel/git/lee/mfd.git
Stephen Rothwell [Tue, 1 Mar 2022 02:39:08 +0000 (13:39 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/ulfh/mmc.git
Stephen Rothwell [Tue, 1 Mar 2022 02:37:31 +0000 (13:37 +1100)]
Merge branch 'pcmcia-next' of git://git./linux/kernel/git/brodo/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 02:35:40 +0000 (13:35 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/dlemoal/libata.git
Stephen Rothwell [Tue, 1 Mar 2022 02:33:19 +0000 (13:33 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/device-mapper/linux-dm.git
Stephen Rothwell [Tue, 1 Mar 2022 02:22:37 +0000 (13:22 +1100)]
Merge branch 'for-next' of git://git.kernel.dk/linux-block.git
# Conflicts:
# fs/iomap/direct-io.c
Stephen Rothwell [Tue, 1 Mar 2022 02:21:03 +0000 (13:21 +1100)]
Merge branch 'next' of git://git./linux/kernel/git/dtor/input.git
Stephen Rothwell [Tue, 1 Mar 2022 02:19:10 +0000 (13:19 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/broonie/sound.git
Stephen Rothwell [Tue, 1 Mar 2022 02:16:03 +0000 (13:16 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/tiwai/sound.git
Stephen Rothwell [Tue, 1 Mar 2022 02:13:54 +0000 (13:13 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/broonie/regmap.git
Stephen Rothwell [Tue, 1 Mar 2022 02:12:17 +0000 (13:12 +1100)]
Merge branch 'for-next' of git://git./linux/kernel/git/deller/linux-fbdev.git
Stephen Rothwell [Tue, 1 Mar 2022 02:10:43 +0000 (13:10 +1100)]
Merge branch 'imx-drm/next' of https://git.pengutronix.de/git/pza/linux
Stephen Rothwell [Tue, 1 Mar 2022 02:09:05 +0000 (13:09 +1100)]
Merge branch 'msm-next' of https://gitlab.freedesktop.org/drm/msm.git
Stephen Rothwell [Tue, 1 Mar 2022 02:07:54 +0000 (13:07 +1100)]
Merge branch 'drm/tegra/for-next' of git://anongit.freedesktop.org/tegra/linux.git
Stephen Rothwell [Tue, 1 Mar 2022 02:04:37 +0000 (13:04 +1100)]
Merge branch 'for-linux-next' of git://anongit.freedesktop.org/drm-intel
# Conflicts:
# drivers/gpu/drm/dp/drm_dp.c
# drivers/gpu/drm/i915/display/intel_bw.c
# drivers/gpu/drm/i915/display/intel_snps_phy.c
Stephen Rothwell [Tue, 1 Mar 2022 02:02:42 +0000 (13:02 +1100)]
Merge branch 'drm-next' of https://gitlab.freedesktop.org/agd5f/linux
Matthew Wilcox (Oracle) [Sun, 25 Jul 2021 03:43:58 +0000 (23:43 -0400)]
selftests/vm/transhuge-stress: Support file-backed PMD folios
Add a -f <filename> option to test PMD folios on files
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Matthew Wilcox (Oracle) [Sun, 25 Jul 2021 03:37:13 +0000 (23:37 -0400)]
mm/filemap: Support VM_HUGEPAGE for file mappings
If the VM_HUGEPAGE flag is set, attempt to allocate PMD-sized folios
during readahead, even if we have no history of readahead being
successful.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Matthew Wilcox (Oracle) [Sun, 25 Jul 2021 03:26:14 +0000 (23:26 -0400)]
mm/readahead: Switch to page_cache_ra_order
do_page_cache_ra() was being exposed for the benefit of
do_sync_mmap_readahead(). Switch it over to page_cache_ra_order()
partly because it's a better interface but mostly for the benefit of
the next patch.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
William Kucharski [Sun, 22 Sep 2019 12:43:15 +0000 (08:43 -0400)]
mm/readahead: Align file mappings for non-DAX
When we have the opportunity to use PMDs to map a file, we want to follow
the same rules as DAX.
Signed-off-by: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Matthew Wilcox (Oracle) [Wed, 5 Feb 2020 16:27:01 +0000 (11:27 -0500)]
mm/readahead: Add large folio readahead
Allocate large folios in the readahead code when the filesystem supports
them and it seems worth doing. The heuristic for choosing which folio
sizes will surely need some tuning, but this aggressive ramp-up has been
good for testing.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Matthew Wilcox (Oracle) [Sat, 30 May 2020 00:54:38 +0000 (20:54 -0400)]
mm: Support arbitrary THP sizes
For code which has not yet been converted from THP to folios, use the
compound size of the page instead of assuming PTE or PMD size.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Matthew Wilcox (Oracle) [Sun, 16 Jan 2022 04:27:08 +0000 (23:27 -0500)]
mm: Make large folios depend on THP
Some parts of the VM still depend on THP to handle large folios
correctly. Until those are fixed, prevent creating large folios
if THP are disabled.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Matthew Wilcox (Oracle) [Sat, 10 Oct 2020 15:47:55 +0000 (11:47 -0400)]
mm: Fix READ_ONLY_THP warning
These counters only exist if CONFIG_READ_ONLY_THP_FOR_FS is defined,
but we do not need to warn if the filesystem natively supports large
folios.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>