git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quota: Push dqio_sem down to ->get_next_id()
[sfrench/cifs-2.6.git]
/
fs
/
quota
/
quota_v2.c
diff --git
a/fs/quota/quota_v2.c
b/fs/quota/quota_v2.c
index 8f54b159e4236c1cafdfa46985161324185bb59e..f82638e43c07d20074c13ab2a70b0da59ba6b410 100644
(file)
--- a/
fs/quota/quota_v2.c
+++ b/
fs/quota/quota_v2.c
@@
-340,7
+340,13
@@
static int v2_free_file_info(struct super_block *sb, int type)
static int v2_get_next_id(struct super_block *sb, struct kqid *qid)
{
static int v2_get_next_id(struct super_block *sb, struct kqid *qid)
{
- return qtree_get_next_id(sb_dqinfo(sb, qid->type)->dqi_priv, qid);
+ struct quota_info *dqopt = sb_dqopt(sb);
+ int ret;
+
+ down_read(&dqopt->dqio_sem);
+ ret = qtree_get_next_id(sb_dqinfo(sb, qid->type)->dqi_priv, qid);
+ up_read(&dqopt->dqio_sem);
+ return ret;
}
static const struct quota_format_ops v2_format_ops = {
}
static const struct quota_format_ops v2_format_ops = {