Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140067
b: refs/heads/master
c: 98b8c7a
h: refs/heads/master
i:
  140065: 9e61885
  140063: 404a253
v: v3
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Jan 19, 2009
1 parent 6bbaa82 commit ab76e6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bb87a33b2cfb8e7ef3383718274094bdff266a3
refs/heads/master: 98b8c7a0c42acf0d6963dbb9aabe4a2e312aae12
12 changes: 11 additions & 1 deletion trunk/fs/xfs/quota/xfs_dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ int xfs_dqreq_num;
int xfs_dqerror_mod = 33;
#endif

static struct lock_class_key xfs_dquot_other_class;

/*
* Allocate and initialize a dquot. We don't always allocate fresh memory;
* we try to reclaim a free dquot if the number of incore dquots are above
Expand Down Expand Up @@ -139,7 +141,15 @@ xfs_qm_dqinit(
ASSERT(dqp->q_trace);
xfs_dqtrace_entry(dqp, "DQRECLAIMED_INIT");
#endif
}
}

/*
* In either case we need to make sure group quotas have a different
* lock class than user quotas, to make sure lockdep knows we can
* locks of one of each at the same time.
*/
if (!(type & XFS_DQ_USER))
lockdep_set_class(&dqp->q_qlock, &xfs_dquot_other_class);

/*
* log item gets initialized later
Expand Down

0 comments on commit ab76e6c

Please sign in to comment.