From: Kent Overstreet Date: Thu, 28 May 2020 21:15:41 +0000 (-0400) Subject: bcachefs: fsck_error_lock requires GFP_NOFS X-Git-Tag: microblaze-v6.8~204^2~2075 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=beb6db68a555d14b4b3a7b894d6d635774bcdafd;p=linux-2.6-microblaze.git bcachefs: fsck_error_lock requires GFP_NOFS this fixes a lockdep splat Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/error.c b/fs/bcachefs/error.c index 5a5cfee623e2..1662a36244cd 100644 --- a/fs/bcachefs/error.c +++ b/fs/bcachefs/error.c @@ -85,7 +85,7 @@ enum fsck_err_ret bch2_fsck_err(struct bch_fs *c, unsigned flags, if (s->fmt == fmt) goto found; - s = kzalloc(sizeof(*s), GFP_KERNEL); + s = kzalloc(sizeof(*s), GFP_NOFS); if (!s) { if (!c->fsck_alloc_err) bch_err(c, "kmalloc err, cannot ratelimit fsck errs");