bcachefs: Journal reclaim requires memalloc_noreclaim_save()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 20 Nov 2020 02:15:39 +0000 (21:15 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:48 +0000 (17:08 -0400)
commit9d4582ffdb286d3513ee9ebf7961b1741d8cbc0d
tree031018c1cff43f37b7c98fed0b748902f5eba848
parentb3c2a06b7d89eb06454f31c4b396e37fbe59374c
bcachefs: Journal reclaim requires memalloc_noreclaim_save()

Memory reclaim requires journal reclaim to make forward progress - it's
what cleans our caches - thus, while we're in journal reclaim or holding
the journal reclaim lock we can't recurse into  memory reclaim.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_reclaim.c