ext4: reduce stack usage in ext4_mpage_readpages()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 18 Jul 2024 22:29:59 +0000 (23:29 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Aug 2024 01:47:03 +0000 (21:47 -0400)
commite37c9e173bff50a2d57dfecdd694457c00ce5a8c
treedbca947b712539e36a4e1aba98547918f8f3ebd5
parentf5cacdc6f2bb2a9bf214469dd7112b43dd2dd68a
ext4: reduce stack usage in ext4_mpage_readpages()

This function is very similar to do_mpage_readpage() and a similar
approach to that taken in commit 12ac5a65cb56 will work.  As in
do_mpage_readpage(), we only use this array for checking block contiguity
and we can do that more efficiently with a little arithmetic.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://patch.msgid.link/20240718223005.568869-1-willy@infradead.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/readpage.c