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: Acquire dqio_sem for reading in dquot_get_next_id()
[sfrench/cifs-2.6.git]
/
fs
/
quota
/
dquot.c
diff --git
a/fs/quota/dquot.c
b/fs/quota/dquot.c
index 21358f31923d86beac01110f5234b57957019178..8d5ccad3bf3ea502e55ba759377cd391c1b87586 100644
(file)
--- a/
fs/quota/dquot.c
+++ b/
fs/quota/dquot.c
@@
-2079,9
+2079,9
@@
int dquot_get_next_id(struct super_block *sb, struct kqid *qid)
return -ESRCH;
if (!dqopt->ops[qid->type]->get_next_id)
return -ENOSYS;
return -ESRCH;
if (!dqopt->ops[qid->type]->get_next_id)
return -ENOSYS;
- down_
write
(&dqopt->dqio_sem);
+ down_
read
(&dqopt->dqio_sem);
err = dqopt->ops[qid->type]->get_next_id(sb, qid);
err = dqopt->ops[qid->type]->get_next_id(sb, qid);
- up_
write
(&dqopt->dqio_sem);
+ up_
read
(&dqopt->dqio_sem);
return err;
}
EXPORT_SYMBOL(dquot_get_next_id);
return err;
}
EXPORT_SYMBOL(dquot_get_next_id);