summaryrefslogtreecommitdiff
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-08-19 18:18:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-08-19 18:18:21 +0200
commitac8649cebe6d84d3333893b67b2023fef90772e5 (patch)
tree07b614ce1324e8f0590d12923606fc4c2ac7fed6 /mm/filemap.c
parentb2c0abc1f2778c28522bc44f5134772809949717 (diff)
parentbf3be28f6721e24961992ebb9e61c0cf21a56806 (diff)
downloadlinux-stable-linux-rolling-lts.tar.gz
linux-stable-linux-rolling-lts.zip
Merge v6.18.45linux-rolling-lts
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 7c26e3735f1b..2d7533e965e6 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -944,6 +944,12 @@ unlock:
if (!xas_nomem(&xas, gfp))
break;
+
+ /*
+ * Lock has been dropped: start again with the original index
+ * and order (but now with the memory reserved by xas_nomem()).
+ */
+ xas_set_order(&xas, index, forder);
}
if (xas_error(&xas))