diff options
| author | Kairui Song <kasong@tencent.com> | 2024-10-02 05:06:23 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-04 16:30:02 +0200 |
| commit | ff3c557fa93e7fcf5891e38fa7285b3c44e994b3 (patch) | |
| tree | a6e6dafc36ebc9b27fa1637ae9e8c6fa6af4f2bb /lib | |
| parent | 4d0261cea469855fa3a33df8dd1cb29b7e6ee05a (diff) | |
| download | linux-ff3c557fa93e7fcf5891e38fa7285b3c44e994b3.tar.gz linux-ff3c557fa93e7fcf5891e38fa7285b3c44e994b3.tar.bz2 linux-ff3c557fa93e7fcf5891e38fa7285b3c44e994b3.zip | |
mm/filemap: return early if failed to allocate memory for split
commit de60fd8ddeda2b41fbe11df11733838c5f684616 upstream.
xas_split_alloc could fail with NOMEM, and in such case, it should abort
early instead of keep going and fail the xas_split below.
Link: https://lkml.kernel.org/r/20240416071722.45997-1-ryncsn@gmail.com
Link: https://lkml.kernel.org/r/20240415171857.19244-1-ryncsn@gmail.com
Link: https://lkml.kernel.org/r/20240415171857.19244-2-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Acked-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 6758c1128ceb ("mm/filemap: optimize filemap folio adding")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
