Andreas Gruenbacher bb7f5d96aa gfs2: Fix should_fault_in_pages() logic
Fix the fault-in window size logic:
* Use a maximum window size of 1 MiB instead of BIO_MAX_VECS * PAGE_SIZE.
  The previous window size was always one page because the pages variable
  was accidentally being defined and then redefined in
  should_fault_in_pages().
* The nr_dirtied heuristic for guessing when there might be memory
  pressure often results in very small window sizes.  Don't let
  nr_dirtied drop below 8 pages (as btrfs does).
* Compute the window size in units of bytes, not pages.
* Account for page overlap (unaligned iterators).

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2022-03-23 16:51:46 +01:00
..
2019-07-03 14:45:18 +02:00
2021-06-29 10:56:51 +02:00
2021-06-29 10:56:51 +02:00
2022-03-23 16:51:46 +01:00
2021-10-25 08:42:19 +02:00
2021-10-25 08:42:19 +02:00
2021-04-29 10:33:35 -07:00
2021-08-19 12:31:17 -05:00
2021-06-29 10:56:51 +02:00
2022-02-15 15:01:40 +01:00
2022-02-15 15:01:40 +01:00
2022-02-15 15:01:40 +01:00