diff options
author | 2023-09-29 20:27:53 -0700 | |
---|---|---|
committer | 2023-10-18 14:34:13 -0700 | |
commit | f0a9ad1d4d9ba3c694bca91d8d67be9a4a33b902 (patch) | |
tree | acf5a44970568c5531eb5fc785ac7970f4bdac9f /mm/migrate.c | |
parent | shmem: remove vma arg from shmem_get_folio_gfp() (diff) | |
download | wireguard-linux-f0a9ad1d4d9ba3c694bca91d8d67be9a4a33b902.tar.xz wireguard-linux-f0a9ad1d4d9ba3c694bca91d8d67be9a4a33b902.zip |
shmem: factor shmem_falloc_wait() out of shmem_fault()
That Trinity livelock shmem_falloc avoidance block is unlikely, and a
distraction from the proper business of shmem_fault(): separate it out.
(This used to help compilers save stack on the fault path too, but both
gcc and clang nowadays seem to make better choices anyway.)
Link: https://lkml.kernel.org/r/6fe379a4-6176-9225-9263-fe60d2633c0@google.com
Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Carlos Maiolino <cem@kernel.org>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Dave Chinner <dchinner@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Tim Chen <tim.c.chen@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
0 files changed, 0 insertions, 0 deletions