diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-05-28 23:15:41 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:40 +0200 |
commit | beb6db68a555d14b4b3a7b894d6d635774bcdafd (patch) | |
tree | 6a27c64621b887182744f034f951e2f93355c7e5 /fs/bcachefs/error.c | |
parent | bcachefs: Interior btree updates are now fully transactional (diff) | |
download | linux-beb6db68a555d14b4b3a7b894d6d635774bcdafd.tar.xz linux-beb6db68a555d14b4b3a7b894d6d635774bcdafd.zip |
bcachefs: fsck_error_lock requires GFP_NOFS
this fixes a lockdep splat
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/error.c')
-rw-r--r-- | fs/bcachefs/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |