804088 Commits

Author SHA1 Message Date
azrim
d81afe5f50
Revert "BACKPORT: include/linux/mm_inline.h: shuffle lru list addition and deletion functions"
This reverts commit d4e55f69635889f2b55ad92018d97134f463a67a.
2022-07-01 09:05:18 +00:00
azrim
f4d0b65ee5
Revert "BACKPORT: mm: don't pass "enum lru_list" to lru list addition functions"
This reverts commit a982a833bcfd9fabb38906b045d848aab2625be8.
2022-07-01 09:05:02 +00:00
azrim
3d4078ef6e
Revert "BACKPORT: mm/swap.c: don't pass "enum lru_list" to trace_mm_lru_insertion()"
This reverts commit 78733943f9a599c0319b780e1f7aeace700b58f8.
2022-07-01 09:04:50 +00:00
azrim
acf071c96b
Revert "BACKPORT: mm/swap.c: don't pass "enum lru_list" to del_page_from_lru_list()"
This reverts commit ab4b57fe4682a6246055e00f8dca5b90ea37dce0.
2022-07-01 09:04:09 +00:00
azrim
7f3803b3bd
Revert "BACKPORT: mm: add __clear_page_lru_flags() to replace page_off_lru()"
This reverts commit a68a203906589bee95afbf10c1b386bf76d612e2.
2022-07-01 09:03:57 +00:00
azrim
cba9062e83
Revert "UPSTREAM: mm: VM_BUG_ON lru page flags"
This reverts commit aae8c5a11011f8c54b0a58b536ad1361fc65d3ad.
2022-07-01 09:03:44 +00:00
azrim
5eb6024425
Revert "BACKPORT: include/linux/mm_inline.h: fold page_lru_base_type() into its sole caller"
This reverts commit 2571d9cfe164f6f31183dee27b24f8fe0c78a1d6.
2022-07-01 09:02:52 +00:00
azrim
58128f6499
Revert "UPSTREAM: include/linux/mm_inline.h: fold __update_lru_size() into its sole caller"
This reverts commit 095bbffc9e0db6fe536d509cd049e6ce6fd1bf7b.
2022-07-01 09:02:38 +00:00
azrim
2b480a1324
Revert "BACKPORT: mm/swapcache: support to handle the shadow entries"
This reverts commit ba5735bbdc8e461b1120424b2ffdce532f284e50.
2022-07-01 09:02:16 +00:00
azrim
571b7ad2f4
Revert "BACKPORT: FROMLIST: include/linux/mm.h: do not warn in page_memcg_rcu() if !CONFIG_MEMCG"
This reverts commit 831c8c52c2d2030a28c36dedba7632e4063346c7.
2022-07-01 09:02:03 +00:00
azrim
a392be83ab
Revert "FROMLIST: include/linux/nodemask.h: define next_memory_node() if !CONFIG_NUMA"
This reverts commit 3bd16485cc45da889bd338b5a9543e1c951e4e01.
2022-07-01 09:01:49 +00:00
azrim
8edc855af8
Revert "FROMLIST: include/linux/cgroup.h: export cgroup_mutex"
This reverts commit 983523c9e4158f3de23c6779270c9a2ecdf5ab0f.
2022-07-01 09:01:40 +00:00
azrim
9e39677245
Revert "BACKPORT: FROMLIST: mm, x86: support the access bit on non-leaf PMD entries"
This reverts commit 8ffd1a0994765f4062723ad1c50153feaed3d493.
2022-07-01 09:01:26 +00:00
azrim
96749960e6
Revert "BACKPORT: FROMLIST: mm/workingset.c: refactor pack_shadow() and unpack_shadow()"
This reverts commit a0b119972826ed2292a1c7d803f2a9ad745e8ff6.
2022-07-01 08:29:10 +00:00
azrim
57edc9ecb2
Revert "BACKPORT: FROMLIST: mm: multigenerational lru: groundwork"
This reverts commit c721ce1a3fffa3284aae195d5d6b09869f4a0411.
2022-07-01 08:29:02 +00:00
azrim
10addd7e22
Revert "BACKPORT: FROMLIST: mm: multigenerational lru: activation"
This reverts commit a1790dfaabf7be9da0ef1017c5346063603b95df.
2022-07-01 08:28:50 +00:00
azrim
56639afc94
Revert "BACKPORT: FROMLIST: mm: multigenerational lru: mm_struct list"
This reverts commit c629993da74fc72c35b79f813c71faea66f5ab63.
2022-07-01 08:28:42 +00:00
azrim
9dfc1faf40
Revert "BACKPORT: FROMLIST: mm: multigenerational lru: aging"
This reverts commit e881609e5e141c5d5f0af59969df0830b106cdc3.
2022-07-01 08:28:29 +00:00
azrim
1f8d8f23b9
Revert "BACKPORT: FROMLIST: mm: multigenerational lru: eviction"
This reverts commit 8560f8e0380c6232aa0e754888f8e186b897f0b4.
2022-07-01 08:28:20 +00:00
azrim
2d3c6f5a7e
Revert "BACKPORT: FROMLIST: mm: multigenerational lru: user interface"
This reverts commit 33b792640665b1d67c0e2114459f5f292540d24b.
2022-07-01 08:28:02 +00:00
azrim
20a79114d5
Revert "FROMLIST: mm: multigenerational lru: Kconfig"
This reverts commit 110e9f339eb08fb30791579d01089b80dd7ebf39.
2022-07-01 08:27:50 +00:00
azrim
f60c6e5b01
Revert "CHROMIUM: mm: multigenerational lru: scan kvm mmu pages"
This reverts commit 6609d555046f58a202b4bdd868c241385852f677.
2022-07-01 08:27:36 +00:00
azrim
5e7b250f8f
Revert "CHROMIUM: mm: multigenerational lru: add arch_has_hw_pte_young()"
This reverts commit 4b202024f242f911711c6bcb59c26b6f6e975964.
2022-07-01 08:27:20 +00:00
azrim
8a3ec6e207
Revert "FIXUP: CHROMIUM: mm: multigenerational lru: scan kvm mmu pages"
This reverts commit 712310fd0db3056acbb8ca16dc6a81174b9b830e.
2022-07-01 08:27:13 +00:00
azrim
5f66be1e48
Revert "FIXUP: FROMLIST: mm: multigenerational lru: Kconfig"
This reverts commit 023f602e9d6b3e966ec33495b8f740db2847443a.
2022-07-01 08:27:04 +00:00
azrim
a456116ea5
Revert "FIXUP: BACKPORT: FROMLIST: mm: multigenerational lru: mm_struct list"
This reverts commit 1232ac7147dfe9f22fbabb72c4730c6fea888c99.
2022-07-01 08:26:54 +00:00
azrim
81ef532521
Revert "FIXUP: BACKPORT: FROMLIST: mm: multigenerational lru: aging"
This reverts commit a91f2b2103d13dd4c407bb2374f8a92eebfe269a.
2022-07-01 08:26:37 +00:00
azrim
10ab638af6
Revert "mm: Fix compilation"
This reverts commit 7f29651c1aa4c6099bb19e90d53fa0b66d6ebba9.
2022-07-01 08:26:31 +00:00
azrim
208b1bb14f
Revert "proc: replace seq_printf on seq_putc to speed up /proc/pid/smaps"
This reverts commit 2e05a91ea7805eeeee0aee0dd42b0db848bef588.
2022-07-01 08:26:24 +00:00
azrim
4e72d4b08a
Revert "mm: process_reclaim: consider compound pages"
This reverts commit 002eed9520d06ce9b1c567538601501ec2183013.
2022-07-01 08:26:17 +00:00
azrim
4d2254b856
Revert "CHROMIUM: config: enable multigenerational lru"
This reverts commit 4ebc923ec9bd850ed3291db4ed801fab2a20259b.
2022-07-01 08:26:08 +00:00
azrim
f4913a89b9
Revert "configs: surya: Regen for MGLRU"
This reverts commit 9b21c3457b035dc43d4f68d77027b55a1fb62ad6.
2022-07-01 08:25:59 +00:00
azrim
ff5e6307fe
Revert "configs: surya: Regenerate full defconfig"
This reverts commit 1fbb132095e16809fcd5badbb69406edbed7f63d.
2022-07-01 08:25:52 +00:00
azrim
7be76f8359
Revert "mm/swap.c: fix compilation"
This reverts commit 314860a83b82e83aaa3d72d2bd28c524ea7efaf5.
2022-07-01 08:24:45 +00:00
azrim
b368188fb7
Revert "mm/vmscan: Fix build after MGLRU patchset [1/3]"
This reverts commit 39e1560fd2050e92f1403e7aa4592c744a20175d.
2022-07-01 08:24:33 +00:00
Mirza Moulfi Ghozali
76146d2e6a
build_script: switch to dora clang 2022-06-30 23:58:25 +07:00
azrim
c1f447f511
drivers: mailbox: fixup 9c642251eda87d8401c3830c191f341ec6309251
../drivers/mailbox/mailbox.c:108:49: error: use of undeclared identifier 'flags'
                spin_lock_irqsave(&chan->mbox->poll_hrt_lock, flags);
                                                              ^
../drivers/mailbox/mailbox.c:108:49: error: use of undeclared identifier 'flags'
../drivers/mailbox/mailbox.c:110:54: error: use of undeclared identifier 'flags'
                spin_unlock_irqrestore(&chan->mbox->poll_hrt_lock, flags);

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:32:30 +00:00
azrim
b82fae7ceb
configs: surya: Regenerate full defconfig 2022-06-30 14:17:54 +00:00
Cyber Knight
fd555fabe8
lz4: Un-staticify some functions
- This fixes the below warnings:

In file included from ../fs/f2fs/super.c:28:
../include/linux/lz4.h:221:12: warning: 'LZ4_compress_fast' declared 'static' but never defined [-Wunused-function]
  221 | static int LZ4_compress_fast(const char *source, char *dest, int inputSize,
      |            ^~~~~~~~~~~~~~~~~
../include/linux/lz4.h:245:12: warning: 'LZ4_compress_destSize' declared 'static' but never defined [-Wunused-function]
  245 | static int LZ4_compress_destSize(const char *source, char *dest, int *sourceSizePtr,
      |            ^~~~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:361:13: warning: 'LZ4_resetStreamHC' declared 'static' but never defined [-Wunused-function]
  361 | static void LZ4_resetStreamHC(LZ4_streamHC_t *streamHCPtr, int compressionLevel);
      |             ^~~~~~~~~~~~~~~~~
../include/linux/lz4.h:376:17: warning: 'LZ4_loadDictHC' declared 'static' but never defined [-Wunused-function]
  376 | static int      LZ4_loadDictHC(LZ4_streamHC_t *streamHCPtr, const char *dictionary,
      |                 ^~~~~~~~~~~~~~
../include/linux/lz4.h:415:12: warning: 'LZ4_compress_HC_continue' declared 'static' but never defined [-Wunused-function]
  415 | static int LZ4_compress_HC_continue(LZ4_streamHC_t *streamHCPtr, const char *src,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:434:12: warning: 'LZ4_saveDictHC' declared 'static' but never defined [-Wunused-function]
  434 | static int LZ4_saveDictHC(LZ4_streamHC_t *streamHCPtr, char *safeBuffer,
      |            ^~~~~~~~~~~~~~
../include/linux/lz4.h:450:29: warning: 'LZ4_resetStream' declared 'static' but never defined [-Wunused-function]
  450 | static __always_inline void LZ4_resetStream(LZ4_stream_t *LZ4_stream);
      |                             ^~~~~~~~~~~~~~~
../include/linux/lz4.h:507:12: warning: 'LZ4_compress_fast_continue' declared 'static' but never defined [-Wunused-function]
  507 | static int LZ4_compress_fast_continue(LZ4_stream_t *streamPtr, const char *src,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:521:12: warning: 'LZ4_setStreamDecode' declared 'static' but never defined [-Wunused-function]
  521 | static int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode,
      |            ^~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:560:12: warning: 'LZ4_decompress_safe_continue' declared 'static' but never defined [-Wunused-function]
  560 | static int LZ4_decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:599:12: warning: 'LZ4_decompress_fast_continue' declared 'static' but never defined [-Wunused-function]
  599 | static int LZ4_decompress_fast_continue(LZ4_streamDecode_t *LZ4_streamDecode,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:622:12: warning: 'LZ4_decompress_safe_usingDict' declared 'static' but never defined [-Wunused-function]
  622 | static int LZ4_decompress_safe_usingDict(const char *source, char *dest,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/lz4.h:645:12: warning: 'LZ4_decompress_fast_usingDict' declared 'static' but never defined [-Wunused-function]
  645 | static int LZ4_decompress_fast_usingDict(const char *source, char *dest,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:49 +00:00
Lingutla Chandrasekhar
881a9bcaef
sched: fair: consider all running tasks in cpu for load balance
Load_balancer considers only cfs running tasks for finding busiest cpu
to do load balancing. But cpu may be busy with other type tasks (ex: RT),
then that cpu might not selected as busy cpu due to weight vs nr_run
checks fails). And possibley cfs tasks running on that cpu would suffer
till other type tasks finishes or weight checks passes, while other cpus
sitting idle and not able to do load balance.

So, consider all running tasks to check cpu busieness.

Change-Id: Iddf3f668507e20359f6388fc30ff5897d234c902
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: atndko <z1281552865@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:48 +00:00
Cyber Knight
edae8db01d
configs: surya: Switch back to Menu for cpuidle
- Menu is the default cpuidle governor that we had hence let's use it.

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:48 +00:00
azrim
da958a053c
Revert "FROMLIST: BACKPORT: mm: fix is_pinnable_page against on cma page"
This reverts commit 59ceb3a99e16198c05d183e7a7c81a31c94d8f67.

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:48 +00:00
azrim
17a04538ac
Revert "mm/page_alloc: bail out on fatal signal during reclaim/compaction retry attempt"
This reverts commit 035798ba78fcfd1a73a553ee0407783fa79f6f10.

Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:48 +00:00
azrim
3bc875aeca
configs: surya: enable MSDOS FS
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:48 +00:00
azrim
ee4f898233
configs: surya: Enable NTFS FS
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:47 +00:00
azrim
ea4694c5a0
configs: surya: enable USB MASS STORAGE
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:17:47 +00:00
azrim
14ac594b62
configs: surya: Regenerate full defconfig
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:15:41 +00:00
Cyber Knight
22ddd84ca3
configs: surya: Enable EROFS
- We use EROFS for some partitions, so let's enable it in our kernel.

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:15:41 +00:00
John Galt
f1be596e9d
Revert "erofs: compression fixes"
This reverts commit 208dabff2d5e3e616a86df8bdba814d54b1a8a1f.

Fixes a deadlock when fix shrinking erofs slab.

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:15:41 +00:00
Matthew Wilcox
cdc42a714c
xarray: add the xa_lock to the radix_tree_root
This results in no change in structure size on 64-bit machines as it
fits in the padding between the gfp_t and the void *.  32-bit machines
will grow the structure from 8 to 12 bytes.  Almost all radix trees are
protected with (at least) a spinlock, so as they are converted from
radix trees to xarrays, the data structures will shrink again.

Initialising the spinlock requires a name for the benefit of lockdep, so
RADIX_TREE_INIT() now needs to know the name of the radix tree it's
initialising, and so do IDR_INIT() and IDA_INIT().

Also add the xa_lock() and xa_unlock() family of wrappers to make it
easier to use the lock.  If we could rely on -fplan9-extensions in the
compiler, we could avoid all of this syntactic sugar, but that wasn't
added until gcc 4.6.

Link: http://lkml.kernel.org/r/20180313132639.17387-8-willy@infradead.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

[@RealJohnGalt: adapt to 4.14]

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:15:40 +00:00