Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129934
b: refs/heads/master
c: 080dda7
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Lachlan McIlroy committed Jan 19, 2009
1 parent 74ad21a commit f37bd7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62e194ecdaf8a1935991c1f8704886328d96a391
refs/heads/master: 080dda7f5e8e8df95bcd17a5345c276e365a2054
9 changes: 9 additions & 0 deletions trunk/fs/xfs/quota/xfs_qm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,13 @@ xfs_qm_sync(
return 0;
}

/*
* The hash chains and the mplist use the same xfs_dqhash structure as
* their list head, but we can take the mplist qh_lock and one of the
* hash qh_locks at the same time without any problem as they aren't
* related.
*/
static struct lock_class_key xfs_quota_mplist_class;

/*
* This initializes all the quota information that's kept in the
Expand Down Expand Up @@ -1105,6 +1112,8 @@ xfs_qm_init_quotainfo(
}

xfs_qm_list_init(&qinf->qi_dqlist, "mpdqlist", 0);
lockdep_set_class(&qinf->qi_dqlist.qh_lock, &xfs_quota_mplist_class);

qinf->qi_dqreclaims = 0;

/* mutex used to serialize quotaoffs */
Expand Down

0 comments on commit f37bd7c

Please sign in to comment.