diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-04 04:08:18 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-04 06:11:24 -0500 |
commit | bd947401f856670fddeb068c2eae3c972bf3e645 (patch) | |
tree | ec11b17bf8772904e6e3cd8a2bfa68f4abbf98af | |
parent | dc0dc2b43e358ca1c399170bb357b4e20b73b857 (diff) |
bcachefs: fix another lockdep splat
-rw-r--r-- | fs/bcachefs/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c index 854f7f551cb7..92b0a2fde37c 100644 --- a/fs/bcachefs/quota.c +++ b/fs/bcachefs/quota.c @@ -245,7 +245,7 @@ int bch2_quota_acct(struct bch_fs *c, struct bch_qid qid, memset(&msgs, 0, sizeof(msgs)); for_each_set_qtype(c, i, q, qtypes) - mutex_lock(&q->lock); + mutex_lock_nested(&q->lock, i); for_each_set_qtype(c, i, q, qtypes) { mq[i] = genradix_ptr_alloc(&q->table, qid.q[i], GFP_NOFS); @@ -296,7 +296,7 @@ int bch2_quota_transfer(struct bch_fs *c, unsigned qtypes, memset(&msgs, 0, sizeof(msgs)); for_each_set_qtype(c, i, q, qtypes) - mutex_lock(&q->lock); + mutex_lock_nested(&q->lock, i); for_each_set_qtype(c, i, q, qtypes) { src_q[i] = genradix_ptr_alloc(&q->table, src.q[i], GFP_NOFS); |